To export many mathematical articles and surveys to Kindle from the LaTeX source code, I am trying to use tex4ebook. It seems to me that I still need to hack many LaTeX codes to finish the compilation, especially I found a case, which is pretty common in LaTeX codes but not compatible with tex4ht (I think): calligraphic letters in subscripts like _\mathfrak m or ^\mathcal T in math mode. A sample code is:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
Given a topological space $X$ with a circle $\mathbb T$-action, let's look at the space of fixed points $X^\mathbb T$.
\end{document}
When running tex4ebook, it indicates an error at ^\mathbb during compilation, while no error is shown during the ordinary LaTeX compilation. I want to ask the reason for that, and suggestions for better practice. Thanks!


_\mathbb Aor^\mathbb{B}, only works by accident. So advising users to use_{\mathbb{A}}is the right call. – daleif Nov 09 '18 at 12:58x_\mathbb{A}crops up (but it does crop up all the time), how do people even notice that "works" and start using it. No normal tex command parses its arguments in that way, try\frac\mathbb{A}\mathbb{B}It is a peculiarity of the primitive^and_parsing (which is why it doesn't work in tex4ht which needs to define_and^as macros to add additional processing) – David Carlisle Nov 09 '18 at 13:29