Expand description
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
pdflatexon the file - Run
pdfcropon to make all expressions the right size - Run
pdftoppmon the resulting.pdf-files to generate.png-files of all the expressions - (Done for each
LatexObj) Load the.png-file into aPngImage
Structs§
- Latex
Idx - An index given to each
LatexObj, as they are all rendered in the same document The only way to obtain an index is to register an equation usingregister_equation, and as such, an invalid index should be impossible to obtain.
Enums§
- Latex
Error - 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_equationsmethod. - render_
all_ equations - Run the rendering process. This takes a few seconds.