Sun Dec 25 03:16:52 2022, original submission:
reference
https://tex.stackexchange.com/questions/669581/tex4ht-fails-on-including-image-with-math-in-caption-after-loading-hyperref-pack
his MWE compiles OK with lualatex but fails in tex4ht once hyperref is added.
-------------------------------------------
\documentclass{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
\begin{figure}
\includegraphics[width=0.5\textwidth]{example-image-a}
\caption{Phase plot $y^{\prime \prime}\left(t \right)+9 y \left(t \right)-\left(\left\{\begin{array}{cc}
8 \sin \left(t \right) & 0<t <\pi
\\
- & \pi <t
\end{array}\right.\right) = 0$}
\end{figure}
\end{document}
----------------------------
And now
make4ht -ulm default -a debug foo.tex "mathjax,htm"
gives
/usr/local/texlive/2022/texmf-dist/tex/generic/tex4ht/html5.4ht))
(/usr/local/texlive/2022/texmf-dist/tex/latex/l3backend/l3backend-dvips.def)
(./foo.aux) (/usr/local/texlive/2022/texmf-dist/tex/latex/base/ts1cmr.fd)
[1] [2]
l.9 --- TeX4ht warning --- File `"example-image-a.xbb"' not found ---
l.9 --- TeX4ht warning --- Cannot determine size of graphic in "example-image-a
.xbb" (no BoundingBox) ---
! Undefined control sequence.
<argument> \EndPicture
l.14 \end{array}\right.\right) = 0$}
?
Removing hyperref it compiles clean. (ps. I used test image above so it can compile as is).
Is there a workaround for this?
TL 2022 on Linux
Thank you,
--Nasser
|