FCAttachTypesettingRule[expr, ...]
attaches a specific TraditionalForm
typesetting rule to expr
. It doesn’t change any properties of expr apart from adding a FormatValue
with a MakeBoxes
rule.
Following choices are possible:
FCAttachTypesettingRule[expr_, str]
FCAttachTypesettingRules[expr, {SubscriptBox, var, sub}]
FCAttachTypesettingRules[expr, {SuperscriptBox, var, sup}]
FCAttachTypesettingRules[expr, {SubsuperscriptBox, var, sub, sup}]
Use FCRemoveTypesettingRules
to remove all typesetting rules attached to expr.
Overview, FCRemoveTypesettingRules.
[mu] FCRemoveTypesettingRules
[mu, "\[Mu]"]
FCAttachTypesettingRule
mu
\mu
["d_ss"] mc
\text{mc}(\text{d$\_$ss})
[mc["d_ss"], {SubscriptBox, "d", "ss"}]
FCAttachTypesettingRule
["d_ss"] mc
d_{\text{ss}}
m12
\text{m12}
[m12, {SubsuperscriptBox, m, 1, 2}]
FCAttachTypesettingRule
m12
m_1^2
{p1, p2, p3, p4}
MapThread[FCAttachTypesettingRule[#1, {SubscriptBox, "p", #2}] &, {{p1, p2, p3, p4}, Range[4]}];
{p1, p2, p3, p4}
\{\text{p1},\text{p2},\text{p3},\text{p4}\}
\left\{p_1,p_2,p_3,p_4\right\}
[mu]
FCRemoveTypesettingRules
[mc["d_ss"]]
FCRemoveTypesettingRules
[m12]
FCRemoveTypesettingRules
/@ {p1, p2, p3, p4}; FCRemoveTypesettingRules