2

Bug introduced in 10.0 or earlier and persisting through 11.3


Consider a String expression with a TemplateBox superscript:

expr = "\!\(\*TemplateBox[{\"base\",\"super\"},\n\"Superscript\"]\)"

In Mathematica 10.1 this produces errors when TeXForm is applied:

TeXForm[expr]

\$RecursionLimit::reclim2: Recursion depth of 4096 exceeded during evaluation of Message[Message::msgl,Hold[{\$RecursionLimit::reclim2,\$RecursionLimit::reclim2,$RecursionLimit::reclim2,General::stop}]]. >>

\$RecursionLimit::reclim2: Recursion depth of 4096 exceeded during evaluation of {\$RecursionLimit::reclim2}. >>

\$RecursionLimit::reclim2: Recursion depth of 4096 exceeded during evaluation of {OutputStream[Name: stdout Unique ID: 1]}. >>

General::stop: Further output of \$RecursionLimit::reclim2 will be suppressed during this calculation. >>

How can this be patched?


A related question, but not dealing with Strings:

Mr.Wizard
  • 271,378
  • 34
  • 587
  • 1,371

0 Answers0