htex.SetOutputMode(mode[, f$])
mode
parameter. This can
be one of the following special constants:
#HTEX_OUTPUT_HOLLYWOOD
SelectBrush()
is active. This is the default
mode.
#HTEX_OUTPUT_SVG
f$
which must be set to the name of the output file.
#HTEX_OUTPUT_PDF
f$
which must be set to the name of the output file.
#HTEX_OUTPUT_PNG
f$
which must be set to the name of the output file.
mode
argument is not #HTEX_OUTPUT_HOLLYWOOD
SetFont("latex", 72, {Loader = "hTeX"}) SetFontStyle(#ANTIALIAS) SetFontColor(#BLACK) htex.SetOutputMode(#HTEX_OUTPUT_PDF, "test.pdf") text$ = "\\int_{now}^{+\\infty} \\text{Keep trying}" TextOut(#CENTER, #CENTER, text$)The code will save the LaTeX-formatted text to a file named
test.pdf
instead of drawing it to Hollywood's current output device.