[tex4ht] BUG: xcolor tex4ht

Henri Menke henrimenke at gmail.com
Mon Apr 8 04:00:19 CEST 2019


On 8/04/19 1:54 PM, Nasser M. Abbasi wrote:
> On 4/7/2019 7:44 PM, Henri Menke wrote:
>> Dear list,
>>
>> When I try to typeset the following MWE with LaTeX everything works fine, but it crashes with htlatex from TeX4HT.
>> I have emailed the xcolor developer about this as well because I don't know
>> whether the problem is in xcolor or in color.4ht.
>>
>> When you reply, please CC to me because I'm not subscribed to the list.
>>
>> Cheers, Henri
>>
>> \documentclass{article}
>> \usepackage{xcolor}
>> \AtBeginDocument{\definecolor{gray}{gray}{.5}}
>> \begin{document}
>> \end{document}
>>
>> ---
>>
>> ! Missing number, treated as zero.
>> <to be read again>
>>                     X
>> l.4 \begin{document}
>>
>>
>>
>>
>>
> 
> What is the reason to write
> 
> \AtBeginDocument{\definecolor{gray}{gray}{.5}}
> 
> vs.
> 
> \definecolor{gray}{gray}{.5}

I actually don't know what is the reason.  The point is that at some point in
history it must have worked (probably around 2006) and now it doesn't work
anymore.  This particular construction is actually part of the PGF/TikZ manual
and currently prevents the manual from typesetting.

https://github.com/pgf-tikz/pgf/blob/adb729aadc0565b0de9a69186a967a0422704e6b/doc/generic/pgf/version-for-tex4ht/pgfmanual-tex4ht.cfg#L21-L33

Cheers, Henri

> 
> ?
> 
> --Nasser
> 




More information about the tex4ht mailing list