Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I got the files tex.web and pdftex.web from the texlive svn repo. I ran

weave tex.web
pdftex tex.tex

which produced a file tex.pdf with a nicely typeset, cross-referenced listing of the WEB source of TeX.

However, if I do the same process pdftex.web, the resulting file pdftex.pdf only contains the pages corresponding to the index.

Is there some other combination of commands I need to run, or do I need to edit part of pdftex.web? I tried weaving in the supplied .ch files, but it didn't seem to make a difference.

share|improve this question
I was looking for pdftex.web, and it turns out it can be browsed online directly through the texlive SVN at this link:… – sdaau Feb 19 at 6:40

1 Answer 1

up vote 6 down vote accepted

Simply change the line

\let\maybe=\iffalse % print only changed modules



in pdftex.web.

share|improve this answer
I forgot to add that you may also want to change \input webmac to \input pdfwebmac at the top of the weaved pdftex.tex to enable hyperlinks, which makes for more pleasant reading. – Ulrik Mar 5 '11 at 22:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.