[−][src]Module ytesrev::latex::render
The LaTeX renderer. This is quite low level, and you probably don't want to use this. Instead,
use LatexObj
, which contains a better, more high-level way to handle LaTeX in your
presentation.
The rendereing process:
- Collect all LaTeX expressions into a file, saved in /tmp/ytesrev/tmp.tex
- Run
pdflatex
on the file - Run
pdfcrop
on to make all expressions the right size - Run
pdftoppm
on the resulting.pdf
-files to generate.png
-files of all the expressions - (Done for each
LatexObj
) Load the.png
-file into aPngImage
Structs
LatexIdx | An index given to each |
Enums
LatexError | An error that might occur when rendering LaTeX expressions |
Functions
add_prelude | Add prelude to the LaTeX render. |
read_image | Reads an image from an LatexIdx. |
register_equation | Register an equation to be rendered. To render, use the |
render_all_equations | Run the rendering process. This takes a few seconds. |