"InactiveTeXExpression" (Interpreter Type)
TeX input.
Details
- "InactiveTeXExpression" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "InactiveTeXExpression" does not require connectivity to the Wolfram Cloud.
- "InactiveTeXExpression" keeps its result unevaluated by wrapping it in Inactivate.
Restriction Specifications
-
Restricted["InactiveTeXExpression",{{choice1,…}}] one among choices Restricted["InactiveTeXExpression",symbols] a expression involving only the given symbols (All, Automatic, or an explicit list)
Restricted["InactiveTeXExpression",symbols,contexts] a expression involving only the given symbols or symbols in the given contexts (All, Automatic, or an explicit list)
Restricted["InactiveTeXExpression",symbols,contexts,resultcontext] a expression involving only the given symbols or symbols in the given contexts, where the new symbols are created in resultcontext
Interpretation
- "InactiveTeXExpression" yields an Inactive representation of the
expression in the Wolfram Language.
Examples
Basic Examples (6)Summary of the most common use cases
Interpret TeX inputs without evaluating them:
In[1]:=1

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-rae2nv
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-p83p1r
Out[2]=2

No evaluation is attempted when matching the choices:
In[1]:=1

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-t477ay
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-7sfln9
Out[2]=2

By default, all symbols are allowed. Restrict to a list of allowed symbols:
In[1]:=1

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-2se6b4
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-nkkthl
Out[2]=2

By default, new symbols are created in $Context, but a custom context can be specified:
In[1]:=1

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-onoqyk
Out[1]=1

Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-u3rgwj
Out[2]=2

Out[2]=2

Specify contexts for the allowed and output symbols:
In[1]:=1

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-wabou2
Out[1]=1

Prevent the creation of any new symbol:
In[1]:=1

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-jvrlf0
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0eyhnl3xiaiw5kmnc782xwywir3vtnrm-w1muxn
Out[2]=2
