Table of contents
class LatexRender
Source: shared/code/tce_latexrender.php:42
Methods
__construct()
public __construct()
Source: shared/code/tce_latexrender.php:207
__destruct()
Default destructor.
public __destruct()
Source: shared/code/tce_latexrender.php:215
getErrorCode()
Returns the error code
public getErrorCode()
Source: shared/code/tce_latexrender.php:437
getFormulaURL()
Tries to match the LaTeX Formula given as argument against the formula cache. If the picture has not been rendered before, it’ll try to render the formula and drop it in the picture cache directory.
public getFormulaURL(mixed $latex_formula)
Parameters:
$latex_formula(mixed): (string) formula in LaTeX format
Source: shared/code/tce_latexrender.php:377
getImageHeight()
Returns Image height
public getImageHeight()
Source: shared/code/tce_latexrender.php:428
getImageWidth()
Returns Image width
public getImageWidth()
Source: shared/code/tce_latexrender.php:419
setFilenamePrefix()
Set filename prefix for chached images.
public setFilenamePrefix(mixed $img_prefix)
Parameters:
$img_prefix(mixed): (string) filename prefix.
Source: shared/code/tce_latexrender.php:343
setFontSize()
Set font size.
public setFontSize(mixed $font_size)
Parameters:
$font_size(mixed): (int) font size in points.
Source: shared/code/tce_latexrender.php:324
setFormulaDensity()
Set formula density (used by ImageMagick)
public setFormulaDensity(mixed $formula_density)
Parameters:
$formula_density(mixed): (int) formula density.
Source: shared/code/tce_latexrender.php:288
setImageFormat()
Set the image format (default = PNG).
public setImageFormat(mixed $image_format)
Parameters:
$image_format(mixed): (string) image format(e.g.: png).
Source: shared/code/tce_latexrender.php:352
setLatexBlackList()
Set the list of unauthorized LaTeX commands.
public setLatexBlackList(mixed $latex_tags_blacklist)
Parameters:
$latex_tags_blacklist(mixed): (array) array of blacklisted commands.
Source: shared/code/tce_latexrender.php:361
setLatexClass()
Set LaTeX class.
Install extarticle class if you wish to have smaller font sizes.
public setLatexClass(mixed $latexclass)
Parameters:
$latexclass(mixed): (string) LaTeX class.
Source: shared/code/tce_latexrender.php:334
setMaxHeight()
Set image height limit in pixels.
public setMaxHeight(mixed $height_limit)
Parameters:
$height_limit(mixed): (string) Max image height in pixels.
Source: shared/code/tce_latexrender.php:306
setMaxLength()
Set size limit for input string.
public setMaxLength(mixed $string_length_limit)
Parameters:
$string_length_limit(mixed): (string) max length for LaTeX string.
Source: shared/code/tce_latexrender.php:315
setMaxWidth()
Set image width limit in pixels.
public setMaxWidth(mixed $width_limit)
Parameters:
$width_limit(mixed): (string) Max image width in pixels.
Source: shared/code/tce_latexrender.php:297
setPathToDvips()
Set path to DVIPS.
public setPathToDvips(mixed $dvips_path)
Parameters:
$dvips_path(mixed): (string) path to DVIPS.
Source: shared/code/tce_latexrender.php:261
setPathToImageMagicConvert()
Set path to ImageMagick convert.
public setPathToImageMagicConvert(mixed $convert_path)
Parameters:
$convert_path(mixed): (string) path to ImageMagick convert.
Source: shared/code/tce_latexrender.php:270
setPathToImageMagicIdentify()
Set path to ImageMagick identify.
public setPathToImageMagicIdentify(mixed $identify_path)
Parameters:
$identify_path(mixed): (string) path to ImageMagick identify.
Source: shared/code/tce_latexrender.php:279
setPathToLatex()
Set path to LATEX.
public setPathToLatex(mixed $latex_path)
Parameters:
$latex_path(mixed): (string) path to LATEX.
Source: shared/code/tce_latexrender.php:252
setPathToPicturesDir()
Set the absolute path to images directory.
public setPathToPicturesDir(mixed $picture_path)
Parameters:
$picture_path(mixed): (string) absolute path to images directory.
Source: shared/code/tce_latexrender.php:225
setPathToPicturesDirHttpd()
Set relative path to images directory.
public setPathToPicturesDirHttpd(mixed $picture_path_httpd)
Parameters:
$picture_path_httpd(mixed): (string) relative path to images directory.
Source: shared/code/tce_latexrender.php:234
setPathToTempDir()
Set path to temporary directory.
public setPathToTempDir(mixed $tmp_dir)
Parameters:
$tmp_dir(mixed): (string) path to temporary directory.