Thanks for the bug report.
On 2013-11-21, spider-mario wrote:
> Oops, my bad, it’s `--math-output='HTML math.css'` (the current default
> value) that causes the problem, not just `--math-output=HTML` without the
> In math mode, when there are both a subscript and a superscript, the `^` and
> `_` symbols are not taken into account by the HTML writer to decide which is
> which: only their order matters, as illustrated by the attached file.
Yes, this is indeed a problem with the stylesheet, however it is not easily
The generated HTML respects the sub/sup markup:
x_3^a \ne x^3_a
However, without stylesheet the indices are not set in one column but with a
Therefore, the stylesheet uses an inline table:
But for this to work correctly, the HTML writer would need to normalize
the index order to "sub,sup".