groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Desable and enable page numbers with ms


From: Tadziu Hoffmann
Subject: Re: [Groff] Desable and enable page numbers with ms
Date: Tue, 16 Oct 2012 00:16:14 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

> Is there a simple way to disable and enable the page numbers,
> without touching the headers?

M. E. Lesk's ms manual says you can redefine PT and BT,
so you might try something like


  .nr noheader 0
  .de noheader
  .nr noheader 1
  ..
  .de PT
  .if !\\n[noheader] \{\
  .ie o .tl \\*[pg*OH]
  .el   .tl \\*[pg*EH]
  .\}
  .nr noheader 0
  ..


Note: I haven't actually tried this, it's just a rough sketch
of how it might work.  The idea is now to simply call
".noheader" before the macro which causes a page break
to start a new chapter.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]