Imagify the following span: the formula .
For some inline formulas, such as , the default baseline
vertical alignment is not ideal. You can adjust it manually, using a
negative value to lower the image below the baseline: . In this case, I’ve specified
a -0.5em
value, which is about half a baseline down.
To check that the filter processes elements of arbitrary depth, we’ve placed the next bit within a dummy Div block.
The display formula below is not explicitly marked to be imagified.
However, it will be imagified if the filter’s scope
option
is set to all
:
This next formula is imagified with options provided for elements of
a custom class, highlightme
: . They display
the formula as an inline instead of a block and add a red border. They
also specify a large zoom (4) but we’ve overridden it and locally
specified a zoom of 1.
The filter automatically recognizes TikZ pictures and loads the TikZ
package with the tikz
option for the
standalone
. When dvisvgm
is used for
conversion to SVG, the required dvisvgm
option is set
too:
We can also use separate .tex
and .tikz
files as sources for images. The filter converts them to PDF (for
LaTeX/PDF output) or SVG as required. That is useful to create
cross-referencable figures with Pandoc-Crossref and Quarto.
Currently, these should not contain a LaTeX preamble or
\begin{document}
. There is no difference between
.tikz
and .tex
sources here. A TikZ picture in
a .tikz
file should still have
\begin{tikzpicture}
or \tikz
commands.
We can also use LaTeX packages that are provided in the document’s
folder, here fitch.sty
(a package not available on
CTAN):