[tex-k] cwebman bugs

Andreas Scherer andreas_tex at freenet.de
Wed May 6 15:09:15 CEST 2020


Am 03.05.20 um 11:13 schrieb Andreas Scherer:
> I just came across this project https://github.com/oberdiek/latex-tds
> that uses some post-processing to move the tables-of-contents to the
> front of the PDF docuents created from WEB codes.

Taking code from 'knuth.drv' into 'cwebmac.tex' (see attached file)
works as follows for different approaches:

(0) cweave common.w

# Run TeX twice to make common.toc available for second round:

(1a) tex common.tex; tex common.tex; dvipdfm coomon

     PDF without active links; toc at end

(1b) tex "\let\pdf+\input common"; \
     tex "\let\pdf+\input common"; \
     dvipdfm common

     PDF with clickable link; toc at end

(1c) pdftex common; pdftex common

     PDF with clickable links; toc at front

(1d) xetex common; xetex common

     PDF without clickable links; toc at front

(1e) xetex "\let\pdf+\input common"; \
     xetex "\let\pdf+\input common"

     PDF with clickable links; toc at front

Pick your preferred variant (1a) .. (1e).

Good luck,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cwebmac.tex
Type: text/x-tex
Size: 28079 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-k/attachments/20200506/a7551eb4/attachment-0001.bin>


More information about the tex-k mailing list.