---------------------------------------------------------------------- print_term_as_tex (EmitTeX) ---------------------------------------------------------------------- print_term_as_tex : term -> unit SYNOPSIS Prints a term as LaTeX. DESCRIBE An invocation of {print_term_as_tex tm} will print the term {tm}, replacing various character patterns (e.g. {/\} and {\/}) with LaTeX commands. The translation is controlled by the string to string function {EmitTeX.hol_to_tex}. FAILURE Should never fail. EXAMPLE - EmitTeX.print_term_as_tex ``\l h. {x | l <= x /\ x <= h}`` before print "\n"; \HOLTokenLambda{}l h. \HOLTokenLeftbrace{}x | l \HOLTokenLeq{} x \HOLTokenConj{} x \HOLTokenLeq{} h\HOLTokenRightbrace{} > val it = () : unit COMMENTS The LaTeX style file {holtexbasic.sty} (or {holtex.sty}) should be used and the output should be pasted into a Verbatim environment. SEEALSO EmitTeX.print_type_as_tex, EmitTeX.print_theorem_as_tex, EmitTeX.print_theory_as_tex, EmitTeX.print_theories_as_tex_doc, EmitTeX.tex_theory. ----------------------------------------------------------------------