jkuczm / MathematicaCellsToTeX

Convert Mathematica cells to TeX, retaining formatting.
Other
57 stars 10 forks source link

Math mode in formatting commands #9

Closed jkuczm closed 8 years ago

jkuczm commented 8 years ago

When expression or character requiring math mode is accompanied by something that doesn't require math mode inside argument, of formatting command, that is processed in math mode, then excessive math mode delimiters are used.

CellToTeX[ϕ1^2 // MakeBoxes, "Style" -> "Input"]
(*
\begin{mmaCell}{Input}
  \mmaSup{\(\phi\)1}{2}
\end{mmaCell}
*)

Related to jkuczm/mmacells#20.