"HeldTeXExpression" (Interpreter Type)
TeX input.
Details
- "HeldTeXExpression" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "HeldTeXExpression" does not require connectivity to the Wolfram Cloud.
- "HeldTeXExpression" keeps its result unevaluated by wrapping it in HoldComplete .
Allowed Forms
- Any valid TeX expression.
Restriction Specifications
-
Restricted ["TeXExpression" ,symbols] a TeX expression involving only the given symbols (All , Automatic , or an explicit list)Restricted ["HeldTeXExpression" ,symbols,contexts] a TeX expression involving only the given symbols or symbols in the given contexts (All , Automatic , or an explicit list)Restricted ["HeldTeXExpression" ,symbols,contexts,resultcontext] a TeX expression involving only the given symbols or symbols in the given contexts, where the new symbols are created in resultcontext
Interpretation
- "HeldTeXExpression" yields a representation of the TeX expression in the Wolfram Language, wrapped in HoldComplete .
Examples
Basic Examples (6)
Interpret TeX inputs without evaluating them:
No evaluation is attempted when matching the choices:
By default, all symbols are allowed. Restrict to a list of allowed symbols:
By default, new symbols are created in $Context , but a custom context can be specified:
Specify contexts for the allowed and output symbols:
Prevent the creation of any new symbol:
See Also
TeXForm Interpreter Restricted Failure HoldComplete
Interpreter Types: TeXExpression InactiveTeXExpression MathMLExpression HeldMathMLExpression InactiveMathMLExpression
Formats: LaTeX