module documentation
Render math in HTML via dvipng or dvisvgm.
Exception |
|
errors on invoking converters. |
Exception |
|
Undocumented |
Function | clean |
Undocumented |
Function | compile |
Compile LaTeX macros for math to DVI. |
Function | convert |
Convert DVI file to specific image format. |
Function | convert |
Convert DVI file to PNG image. |
Function | convert |
Convert DVI file to SVG image. |
Function | ensure |
Create temporary directory. |
Function | generate |
Generate LaTeX macro. |
Function | get |
Undocumented |
Function | html |
Undocumented |
Function | html |
Undocumented |
Function | read |
Read the depth from comment at last line of SVG file |
Function | render |
Render the LaTeX math expression *math* using latex and dvipng or dvisvgm. |
Function | render |
Undocumented |
Function | setup |
Undocumented |
Function | write |
Write the depth to SVG file as a comment at end of file |
Constant | SUPPORT |
Undocumented |
Variable | depth |
Undocumented |
Variable | depthsvg |
Undocumented |
Variable | depthsvgcomment |
Undocumented |
Variable | logger |
Undocumented |
Variable | templates |
Undocumented |
Render the LaTeX math expression *math* using latex and dvipng or dvisvgm. Return the image absolute filename and the "depth", that is, the distance of image bottom and baseline in pixels, if the option to use preview_latex is switched on. Error handling may seem strange, but follows a pattern: if LaTeX or dvipng (dvisvgm) aren't available, only a warning is generated (since that enables people on machines without these programs to at least build the rest of the docs successfully). If the programs are there, however, they may not fail since that indicates a problem in the math source.
Parameters | |
self:HTML5Translator | Undocumented |
math:str | Undocumented |
Returns | |
tuple[ | Undocumented |