1

This is another problem after applying the code in https://tex.stackexchange.com/a/623536/

MWE:

\documentclass{amsart}
\usepackage{hyperref}
\usepackage{cleveref}

\newtheorem{theorem}{Theorem}

\begin{document}
Look at our \hyperref[thm]{main theorem}.
\begin{theorem}\label{thm}
  Something
\end{theorem}

Our main theorem is \Cref{thm}.
\end{document}

After compiling with make4ht, I get a html containing Our main theorem is <a href='#x1-2r1'>Theorem <a href='#theorem.1'>1</a></a>, but there is no #theorem.1 (and this nested href does not seem to be a valid html code?). It is interesting that, if there is no \hyperref[thm]{main theorem}, then such html code does not appear.

I wonder the reason and a workaround.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.