[tex4ht] Troubles with cleveref

Jason Gross jasongross9 at gmail.com
Thu Mar 27 20:14:18 CET 2014


Hi,
I am trying to get cleveref working with htlatex.  I was able to get amsthm
to work with htlatex and cleveref by deferring the loading of cleveref with
\AtBeginDocument.  However, I cannot seem to make the align environment
work.  As I posted at
http://tex.stackexchange.com/questions/168093/how-can-i-get-htlatex-to-work-with-amsmaths-align-and-cleveref
:

I have a document test.tex:

\documentclass{article}\usepackage{amsmath}\usepackage{etoolbox}\AtEndPreamble{\usepackage{cleveref}}\begin{document}\begin{align}
.\end{align}\end{document}

 It compiles fine under latex and pdflatex. However, when I run it with
htlatex, I get

D:\Documents\GitHub\book>htlatex test.tex
D:\Documents\GitHub\book>latex
\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g at addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname
tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode
.a.b.c.\input  test.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9 64-bit)
entering extended mode
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2012-05-30, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, latin, latvian,
 lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerman, n
german-x-2012-05-30, nynorsk, oriya, panjabi, pinyin, polish, portuguese, roman
ian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swissgerm
an, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, usengl
ishmax, welsh, loaded.(D:\Documents\GitHub\book\test.tex("D:\Program
Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document
class("D:\Program Files\MiKTeX
2.9\tex\latex\base\size10.clo"))("D:\Program Files\MiKTeX
2.9\tex\generic\tex4ht\tex4ht.sty")("D:\Program Files\MiKTeX
2.9\tex\generic\tex4ht\usepackage.4ht")("D:\Program Files\MiKTeX
2.9\tex\latex\amsmath\amsmath.sty"
For additional information on amsmath, use the `?' option.("D:\Program
Files\MiKTeX 2.9\tex\latex\amsmath\amstext.sty"("D:\Program
Files\MiKTeX 2.9\tex\latex\amsmath\amsgen.sty"))("D:\Program
Files\MiKTeX 2.9\tex\latex\amsmath\amsbsy.sty")("D:\Program
Files\MiKTeX 2.9\tex\latex\amsmath\amsopn.sty"))("D:\Program
Files\MiKTeX 2.9\tex\latex\etoolbox\etoolbox.sty"("D:\Program
Files\MiKTeX 2.9\tex\latex\misc\etex.sty"))(D:\Documents\GitHub\book\cleveref.sty)("D:\Program
Files\MiKTeX 2.9\tex\generic\tex4ht\tex4ht.4ht"
::::::::::::::::::::::::::::::::::::::::::
 TeX4ht info is available in the log file
::::::::::::::::::::::::::::::::::::::::::


Can anyone tell me how to fix this?

Thanks,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex4ht/attachments/20140327/cfff9c33/attachment-0001.html>


More information about the tex4ht mailing list