[texhax] Gobbling three-argument commands redux

Lucas (a.k.a T-Bird or bsdfan3) tbird-contact at cox.net
Thu Apr 5 14:05:50 CEST 2007


I'll try using the \let trick and report back when I see how well it works.

Karl Berry wrote:

>    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