Article View: comp.text
Article #661page numbering between chapters in nroff
From: Kevin Carothers
Date: Tue, 29 Aug 1989 00:38
Date: Tue, 29 Aug 1989 00:38
30 lines
1422 bytes
1422 bytes
Hello
I apologize if this is a simple request, but all the nroff/troff
people I know don't seem to have any ideas either, so here goes.
I have a very large document, consisting of multiple chapters, and
I would like to pass the ending page from the previous chapter to
thefirst page of the next chapter (plus 1, of course).
Does anyone have any nifty algorithms for doing this? So far I haven't
been able to figure out a simple way of doing this.
The only thing that seems doable so far is to append a ".so" to the end
of each chapter, but this is rather unacceptable, as each chapter can
stand on its own, or in conjunction with all others.
The Nroff/Troff Users guide mentions that number registers (.nr %) can
be read or written, but I have seen no example. Ideally, I would like to
set an environment variable with the page #, so that from a makefile I can
do something like
"nroff -ms -n$page chapterx.ms"
Any help would be very welcome.
Thank you all
--
Kevin Carothers {philabs,csun,psivax}!ttidca!kevin
Technical Details
Message-ID:
<5689@ttidca.TTI.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!philmtl!philabs!ttidca!kevinShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!philmtl!philabs!ttidca!kevin From: kevin@ttidca.TTI.COM (Kevin Carothers) Newsgroups: comp.text Subject: page numbering between chapters in nroff Message-ID: <5689@ttidca.TTI.COM> Date: 29 Aug 89 00:38:45 GMT Organization: Citicorp/TTI, Santa Monica Lines: 30