htex.SetOutputMode(mode[, f$])
mode parameter. This can
be one of the following special constants:
#HTEX_OUTPUT_HOLLYWOODSelectBrush() is active. This is the default
mode.
#HTEX_OUTPUT_SVGf$ which must be set to the name of the output file.
#HTEX_OUTPUT_PDFf$ which must be set to the name of the output file.
#HTEX_OUTPUT_PNGf$ 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.