Detailed Description
Definition at line 8 of file latex.php.
Member Function Documentation
Delete files created in temporary area Don't forget to copy the final gif/png before calling this
- Parameters:
-
| string | $filename | file base (no extension) |
Definition at line 142 of file latex.php.
Turn the bit of TeX into a valid latex document
- Parameters:
-
| string | $forumula | the TeX formula |
| int | $fontsize | the font size |
- Returns:
- string the latex document
Definition at line 40 of file latex.php.
| execute |
( |
$ |
command, |
|
|
$ |
log = null |
|
) |
| |
execute an external command, with optional logging
- Parameters:
-
| string | $command | command to execute |
| file | $log | valid open file handle - log info will be written to this file |
- Returns:
- return code from execution of command
Definition at line 66 of file latex.php.
Constructor - create temporary directories and build paths to external 'helper' binaries. Other platforms could/should be added
Definition at line 18 of file latex.php.
| render |
( |
$ |
formula, |
|
|
$ |
filename, |
|
|
$ |
fontsize = 12, |
|
|
$ |
density = 240, |
|
|
$ |
background = '', |
|
|
$ |
log = null |
|
) |
| |
Render TeX string into gif/png
- Parameters:
-
| string | $formula | TeX formula |
| string | $filename | base of filename for output (no extension) |
| int | $fontsize | font size |
| int | $density | density value for .ps to .gif/.png conversion |
| string | $background | background color (e.g, #FFFFFF). |
| file | $log | valid open file handle for optional logging (debugging only) |
- Returns:
- bool true if successful
Definition at line 88 of file latex.php.
Accessor function for support_platform field.
- Returns:
- boolean value of supported_platform
Definition at line 30 of file latex.php.
Field Documentation
The documentation for this class was generated from the following file: