> As mentioned on page 2, you can handle simple cases for \mathop's by using
> \sideset from the amsmath extension, e.g.,
>
> $$ \sideset{_*^*}{_*^*}\prod $$
That's not what I want. I would like to have multiple indices on the
right and aligned even if the upper or lower index is missing.
> Next you can abuse the mhchem extension which aligns prescripts to the
> right, e.g.,
>
> $\require{mhchem} \ce{^{227}_{90}Th+} $
No, I cannot. It allows only numbers as scripts as far as I understood.
I've experimented already with this.
> For those interested in giving it a try, it should not be terribly
> difficult to implement the tensor package since MathJax uses MathML
> internally which has multiscript element for this kind of layout. See the
> documentation <
http://docs.mathjax.org/en/latest/extension-writing.html>
> and other TeX extensions for starting points.
MathJax uses MathML internally? Aha.
Since my TeX output comes from a computer algebra system FriCAS and I am
currently writing a converter for it to generate output that is easily
rendered by MathJax, I should, maybe generate the respective TeX
commands that correspond to the MathML output.
What would I have to generate? In particular, it's not exactly clear how
to produce the mathml tags by using LaTeX commands. I've read that
yesterday somewhere but I didn't pay attention and now cannot find it
anymor. :-(
Also, since I can generate the respective TeX for MathJax to process,
My example
M\indices{^a_b^{cd}_e}
could be generated instead as
M_a^b\vphantom{M}^{cd}\vphantom{M}_e
I found that after a lot of experiments and it renders reasonably well.
That would be a workaround for me, but if the expression "M" were more
complicated it would have to be processed by MathJax several times in
order to get its height. That's certainly wasted time.
Unfortunately, I don't have enough knowledge to write the respective
MathJax extension. Is there anyone who would do that? It's certainly
helpful not only for me.
Thanks
Ralf