[tex4ht] [bug #423] \left and \right inside caption with label cause TeX capacity exceeded when used with hyperref
Michal Hoftich
michal.h21 at gmail.com
Sun May 26 12:12:04 CEST 2019
Follow-up Comment #1, bug #423 (project tex4ht):
Dear Joel,
this issue is caused by the nameref support, which is loaded automatically by
hyperref. Each caption, section title and similar stuff is then saved to the
auxilary file, in order to be available for the \nameref command. There can be
expansion issues when the contents are written to the auxilary file, as in
your case.
I don't know if we can fix that on the tex4ht level - we could use something
like \detokenize command to write literal contents of the caption to the aux
file, but in this case you wouldn't save the current value of macros, which
you may want in some cases.
On the document level, you can use the \protect command to disable expansion
of the command when it is written:
\caption{$\protect\left(A\protect\right)$}
BTW, if you want to make an eBook, you may want to take a look at tex4ebook:
https://ctan.org/pkg/tex4ebook?lang=en
_______________________________________________________
Reply to this item at:
<http://puszcza.gnu.org.ua/bugs/?423>
_______________________________________________
Message sent via/by Puszcza
http://puszcza.gnu.org.ua/
More information about the tex4ht
mailing list