|
| clean_up ( $filename) |
| Delete files created in temporary area Don't forget to copy the final gif/png before calling this. More...
|
|
| construct_latex_document ($formula, $fontsize=12) |
| Turn the bit of TeX into a valid latex document. More...
|
|
| execute ( $command, $log=null) |
| execute an external command, with optional logging More...
|
|
| latex () |
| Old syntax of class constructor. More...
|
|
| render ( $formula, $filename, $fontsize=12, $density=240, $background='', $log=null) |
| Render TeX string into gif/png. More...
|
|
| supported () |
| Accessor function for support_platform field. More...
|
|
◆ clean_up()
latex::clean_up |
( |
|
$filename | ) |
|
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) |
◆ construct_latex_document()
latex::construct_latex_document |
( |
|
$formula, |
|
|
|
$fontsize = 12 |
|
) |
| |
Turn the bit of TeX into a valid latex document.
- Parameters
-
string | $forumula | the TeX formula |
int | $fontsize | the font size |
- Return values
-
◆ execute()
latex::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 |
- Return values
-
return | code from execution of command |
◆ latex()
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ render()
latex::render |
( |
|
$formula, |
|
|
|
$filename, |
|
|
|
$fontsize = 12 , |
|
|
|
$density = 240 , |
|
|
|
$background = '' , |
|
|
|
$log = null |
|
) |
| |
Render TeX string into gif/png.
- Parameters
-
string | $formula | TeX formula |
string | $filename | filename for output (including 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) |
- Return values
-
◆ supported()
Accessor function for support_platform field.
- Return values
-
boolean | value of supported_platform |
The documentation for this class was generated from the following file: