[luatex] How to extend cwebmac.tex for LuaTeX?
Andreas Scherer
andreas_tex at freenet.de
Sat Sep 30 12:48:03 CEST 2023
Dear all,
I would like to amend cwebmac.tex/cwebacromac.tex for use with LuaTeX.
As is, 'cweave common; luatex common' produces 'common.pdf', but the
links are not 'active'.
If I add something like '\ifluatex\let\ifpdftex=\ifluatex\fi' at the top
of cwebmac.tex, 'luatex common' fails with
! Undefined control sequence.
<argument> ... \hbox to0pt{\let \*=\empty \ifpdftex \pdfdest
num \secstar
fith\else \sp...
If I add the branch
\else\ifluatex
\def\pdflink#1#2{\hbox{\pdfstartlink height \theheight depth \thedepth
attr{/Border [0 0 0]} goto num #1 \Blue #1\Black\pdfendlink}}
in cwebacromac.tex (after \ifpdfttex), 'luatex common' fails with
! Undefined control sequence.
\pdflink #1#2->\hbox {\pdfstartlink
height \theheight depth \thedepth
attr{/...
Is there a special incantation of luatex to get 'active' PDF links?
Thanks for your help,
Andreas
More information about the luatex
mailing list.