I found that tex4ht doesn't work with cleveref and amsthm. I just modified the HWE from an old post:

Test content

See the test found in \cref{test}

When I compile it with htlatex, it complains:

! Argument of \eorem:syle has an extra }.
<inserted text> 
l.8 \begin{rmk}

This answer suggests \AtBeginDocument. However, then the \cref will be rendered wrongly as ??. I wonder a workaround for this.

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.