Closed muzimuzhi closed 5 months ago
Funny that you bring this up. Just today I made notes to compare the tables-of-contents of
\title{\MF}
\title{\MP}
at top of one page of ToC; full \pagewidth
widein conjunction with pdfwebtocfront.tex
in knuth-pdf.
It started only yesterday: https://tug.org/pipermail/metapost/2024-May/003564.html ;o)
The aim is to have a uniform layout for these ToCs including the \title{PROGRAM}
on top.
After makeall -f "tex mf pdftex xetex hitex mp" -npt pdftex
you can replace xetex.toc
with pdftex.toc
and rerun xetex xetex
to get a two-page ToC. I have no clue what's different in the various preambles.
See also issue #25 for a broader picture.
makeall -f "tex mf pdftex xetex hitex mp" -npt pdftex
only compiled tex.tex
for me. I use a non-full TeX Live installation. Would that matter?
It seems the ToC in tex.pdf
has a similar problem (maybe that's intentional behavior since there's no "Overfull \vbox" in loading CONTENTS.tex
):
xetex.pdf
has more chapters so the problem is more visually obvious, as the last ToC entry "55. Index" is missing.
Since xewebmac.tex
loads webmac.tex
(if \botofcontents
is undefined), the difference may come from the differences between pdfwebmac.tex
and webmac.tex
.
makeall -f "tex mf pdftex xetex hitex mp" -npt pdftex
only compiledtex.tex
for me. I use a non-full TeX Live installation. Would that matter?
In order to use the makeall
script you need the source tree for TeX Live. (If you want to commit code, submit patches to tex-k@tug.org.)
It seems the ToC in
tex.pdf
has a similar problem
Yes, TeX's ToC is tight. It runs to two pages for the TeX Live version.
Since
xewebmac.tex
loadswebmac.tex
(if\botofcontents
is undefined), the difference may come from the differences betweenpdfwebmac.tex
andwebmac.tex
.
If you run makeall -f tex -npt pdftex
, the outdated macros xewebmac.tex
and pdfwebmac.tex
are not used, but the modern pwebmac.tex
(and that's the only version of "PDF macros for WEB" I use).
Another facet of this issue is that tex-changes.pdf
has a two-page ToC and the main code starts on page 4 instead of 3. Will have to adapt pdfwebtocfront.tex
.
The most recent pdfwebtocfront.tex
addresses this issue: \pdfpageheight
is increased by half an inch for the long programs (TeX, Metafont, pdfTeX, and XeTeX). Also the default header title “WEB output” is replaced with “Table of Contents” on the second page of the ToC.
Samples for the upcoming knuth-pdf package can be studied in this release.
Home at last: https://ctan.org/tex-archive/info/knuth-pdf/xetex
xetex.pdf
pdftex.pdf