[tex4ht] BUG: xcolor tex4ht

Nasser M. Abbasi nma at 12000.org
Mon Apr 8 03:54:49 CEST 2019


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}

?

--Nasser


More information about the tex4ht mailing list