[This wasn't sent out earlier.]
Hi,
Yes, but you'll have to dig a little deeper (basically: write an extension). Start by looking at the TeX input jax itself and the implementation of \text etc.
Text-mode commands are generally outside the scope of MathJax. Some easy macros might be technically possible but TeX's text-mode is a very different beast (both for TeX and when thinking of rendering that to the web).
From our (MathJax team) perspective, we'd suggest to submit such extensions to the third party extension repo which we mirrored to the CDN.
Best regards,
Peter.
So I guess what is written inside \text is considered to be non-math-mode macros. So I guess I am stuck with parsing macros inside \text manually and transform them using math-mode macros before MathJax renders. Like
\text{H\textsubscript{2}O} -> \text{H$_\text{2}$O}
Am Freitag, 27. November 2015 12:55:44 UTC+1 schrieb racoon:Hi,
MathJax only supports (La)TeX math by default. On the other hand it supports the \text (\textrm and the like) command which is great. Is it somehow possible to define LaTeX macros to be used inside \text, e.g. \text{H\textsubscript{2}O} or even more complex \text{\emph{H\textsubscript{2}O}}?
Best,
Daniel