I'm writing an online book in a Mathematica template and would like to display equations using Szabolcs' wonderful MaTeX (LaTeX typesetting in Mathematica) because the readability is superior to the default from Mathematica. Thus I use:
<<MaTeX` SetOptions[MaTeX, "Magnification" -> 1.5];
This gives me the typography I seek:
MaTeX[HoldForm[Integrate[x^2, x] = x^3/3]]
I can then collapse the paired cells so that only the typeset equation is visible.
However, I want such an equation to be in the
EquationNumbered style, complete with automatic numbering. Right now I have to hand select each such typeset cell and use the pull-down menu to change its style to EquationNumbered.
I thought the right approach would be:
CellPrint[EquationNumbered[ MaTeX[HoldForm[Integrate[x^2, x] = x^3/3]]]]
but that does not work.
Question: How do I programmatically create an
EquationNumbered that nevertheless has the style of MaTeX?