[texhax] Gobbling three-argument commands redux
Karl Berry
karl at freefriends.org
Thu Apr 5 00:27:38 CEST 2007
How do I save/restore the original definition of \addcontentsline in
that scheme?
Don't know if it works, but:
\let\saveacl=\addcontentsline
\def\addcontentsline#1#2#3{}
\include{gpl.tex}
\let\addcontentsline=\saveacl
By the way, it seems fdl.tex was apparently created as a standalone
document (with \documentclass, etc.), rather than as a chapter.
(gpl.tex is a \chapter.)
Maybe the simplest way would be to make a pdf or whatever and then
include that.
Good luck,
Karl
More information about the texhax
mailing list