Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tex4ht driver is broken #651

Closed
hmenke opened this issue Apr 7, 2019 · 4 comments
Closed

tex4ht driver is broken #651

hmenke opened this issue Apr 7, 2019 · 4 comments

Comments

@hmenke
Copy link
Member

hmenke commented Apr 7, 2019

Making the tex4ht documentation currently fails with

! Missing number, treated as zero.
<to be read again> 
                   X
l.11 \begin{document}

A little more insight can be gained by adding \tracingall to the pgfmanual.tex file.

diff --git a/doc/generic/pgf/version-for-tex4ht/en/pgfmanual.tex b/doc/generic/pgf/version-for-tex4ht/en/pgfmanual.tex
index 4bc4b274..9ef5a922 100644
--- a/doc/generic/pgf/version-for-tex4ht/en/pgfmanual.tex
+++ b/doc/generic/pgf/version-for-tex4ht/en/pgfmanual.tex
@@ -12,5 +12,6 @@
 % pgf version is defined in \pgfversion in file
 % generic/pgf/utilities/pgfrcs.code.tex 
 
+\tracingall
 \input{../pgfmanual-tex4ht.cfg}
 \input{../../text-en/pgfmanual-en-main.tex}

Then it seems like there is a problem with xcolor.

\colornameprefix ->XC@
! Missing number, treated as zero.
<to be read again> 
                   X
\colornameprefix ->X
                    C@
\XC@c@lcD #1#2#3#4->\dimen@ #3
                              \p@ \rdivide \dimen@ {#1}\edef #4{\strip@pt \d...

\HColor!gray ...\XC@c@lcD \rangeGray {}{#1}\@@tmp 
                                                  \int:of \:tempa {255}{\@@t...

\XC@definec@lor ...sname HColor!#4\endcsname #3!//
                                                  \edef \:temp {{HColor}{#1}...

\:begindocumenthook ...efinecolor {gray}{gray}{.5}
                                                   \definecolor {darkgreen}{...

\@begindocumenthook ...csname \:begindocumenthook 
                                                  \csname b:AtBeginDocument\...

\document ...ent \@firstofone \@begindocumenthook 
                                                  \ifdim \topskip <1sp\globa...

\document ... \let \no@document \:UnDef \document 
                                                  \at:startdoc 
\:temp ...:opt }\csname begin\endcsname {document}
                                                  \EndPreamble 
\document ...nput \config:file \relax }\fi \:temp 
                                                  \let \@latex@error \:latex...
l.11 \begin{document}
@hmenke hmenke added the manual label Apr 7, 2019
@hmenke
Copy link
Member Author

hmenke commented Apr 7, 2019

xcolor problem confirmed. MWE:

\documentclass{article}
\usepackage{xcolor}
\AtBeginDocument{\definecolor{gray}{gray}{.5}}
\begin{document}
\end{document}

@hmenke
Copy link
Member Author

hmenke commented Apr 8, 2019

Corresponding thread on the tex4ht list: https://tug.org/pipermail/tex4ht/2019q2/002242.html

@samcarter
Copy link
Member

samcarter commented Apr 10, 2019

For me the color problems was caused by a local color.cfg within the pgf documentation tree.

Without this file I can run tex4ht in the version-for-pdftex folder. There a few minor issues with the code of the text itself, but if I temporally remove them, I can create an html version of the manual. (I did not yet test in the version-for-tex4ht folder due to long compilation time)

@hmenke hmenke added the tex4ht label Apr 17, 2019
@hmenke hmenke changed the title Manual doesn't build with tex4ht tex4ht driver is broken Apr 22, 2019
@hmenke hmenke added this to the 3.1.6 milestone Dec 17, 2019
@hmenke
Copy link
Member Author

hmenke commented Sep 3, 2020

Since the manual compiles now (at least it doesn't cause errors) I'm closing this.

@hmenke hmenke closed this as completed Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants
@hmenke @samcarter and others