I am using the mhchem package for writing chemical formulas. Preview-latex displays them correctly in Emacs when the command
\ce
is inside the math environment, but not when \ce
is inside the regular text. After reading documentation I have added:
Code: Select all
\PreviewMacro[{{}}]{\ce}
$\alpha \ce{Al2O3}$
is displayed as:"$\alpha Al2O3$" (with 2 and 3 in subscripts), while without
\PreviewMacro
I can see the Greek letter alpha and correctly formatted formula. Is it possible to have a correct preview of everything in both text and math mode?Thanks!
Tad