Format of the input is
...LaTeX maths code %%imgmath type1 label1 ...LaTeX maths code... %%imgmath type2 label2 ... %%startmdefs ... %%endmdefs
The `labeln' field may be any identifying string generated by whatever
generated this file. The `typen' field must be one of
inline
, equation
, or eqnarray
(the
first corresponds to inline maths mode in LaTeX, and the other
two to the correspondingly named LaTeX environments). Lines between
%%startmdefs
and %%endmdefs
are copied verbatim
to the output.
We spit out two files, based on the filename root of the argument.
The text one consists of a sequence of lines starting with the
format `label <labelname> <filename>', which maps equation labels
(the second parameter of the %%imgmath
lines above to
filenames generated by this script. The
LaTeX file consists of a LaTeX document with one equation per page. The
latter should be processed by LaTeX plus whatever dvi to bitmap magic
you need, making sure that the resulting image filenames match those
in the labels file.
This script is designed to work with dvi2bitmap
, as
it uses dvi2bitmap specials to control the output filenames. See
the dvi2bitmap
documentation for details.
File containing LaTeX maths fragments, of the format described above.