[texhax] Gobbling three-argument commands redux

Lucas (a.k.a T-Bird or bsdfan3) tbird-contact at cox.net
Tue Apr 3 23:46:11 CEST 2007

Alas, I am desperately trying to avoid modifying the files I am 
including, as they are LaTeX versions of the GNU GPL and FDL, which both 
have "do not modify this license" clauses in them.  Has anyone pulled 
this off using newclude before?

Barbara Beeton wrote:

>    How do I gobble (in the style of moredefs' \GobbleMM) a LaTeX macro that 
>    takes three mandatory arguments?  In this case, it's an 
>    \addcontentsline{toc}{bla}{mumble} that I am trying to \Disable in order 
>    to properly include the file it is in with the help of newclude.  I am 
>    working in a CWEB file using \documentclass[baseclass=book]{cweb}.  
>    Please CC me as I am not subscribed to the list.
>this comes up rather often in publications of
>the american math society, and we have put the
>answer in the ams author faq:
>  www.ams.org/authors/author-faq.html
>search for "omit a heading".  a formula for
>entering a replacement is also given.  note
>that if the hyperref package is used, you will
>need to increase the number of arguments by one.
>							-- bb

More information about the texhax mailing list