Re: [Groff] MS: Keeping the TOC

2010-03-26 Thread Anton Shepelev
> In the GNU ms macros, the name "HD" seems to be reserved > for a user-supplied page header and/or footer macro, which > (if it exists) gets called at some place during the page > initialization. Since you have defined HD, this gets called, > and in turn calls XS and XE but with no useful text (s

Re: [Groff] MS: Keeping the TOC

2010-03-26 Thread Tadziu Hoffmann
> I want the headers (.NH) automatically create TOC entries, > for which reason, right in my document's file, I defined > the following macro: > > .de HD > .NH \\$1 > \\$2 > .XS > \\$2 > .XE > .. > > which creates both a header and a TOC entry for it, so I > would no longer bother about the actu

[Groff] MS: Keeping the TOC

2010-03-26 Thread Anton Shepelev
Hello all, I want the headers (.NH) automatically create TOC entries, for which reason, right in my document's file, I defined the following macro: .de HD .NH \\$1 \\$2 .XS \\$2 .XE .. which creates both a header and a TOC entry for it, so I would no longer bother about the actuality of my TOC.