Re: Automatically updated Table of Contents with Nroff

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

 



Hi -

> From: "Stefan Santesson" <stefan@xxxxxxxxxxx>
> To: "Donald Eastlake" <d3e3e3@xxxxxxxxx>
> Cc: "IETF Discussion Mailing List" <ietf@xxxxxxxx>
> Sent: Tuesday, July 14, 2009 6:03 PM
> Subject: Re: Automatically updated Table of Contents with Nroff
...
> All I have managed to get across are ways to generate a TOC in the end of
> the document, that you have to move manually. When doing that move, your
> page numbering and formatting may change.
...

No need to manually edit.

Use the macros or awk / sed to spit the toc into a file which can be inserted
into the correct position by the .so nroff directive.  This will result in
a table of contents in the correct position.  There is the possibility
that if the number of toc pages has changed from one iteration
to the next that the page numbers will be off by one, but that will
go away the next time the process runs.

For editing a document, particularly a largish one, the availability of
.so is for me nroff's biggest advantage over xml2rfc.

Randy

_______________________________________________

Ietf@xxxxxxxx
https://www.ietf.org/mailman/listinfo/ietf

[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Fedora Users]