On 17.03.2011 16:52, Stefan Santesson wrote:
Julian,

I'm not sure what you have in mind that would change the page breaks.

The RFC Production Center sometimes adds forced page breaks to manage vertical white space. When they do that in the nroff file, the ToC will get out of sync.

NroffEdit accomplish this by iterating the task a number of times.

The following steps are executed:

1) Analyzing the Nroff document to determine which headings are present
and their data.
2) Compiles the text document.
3) Analyzing the text document to figure out on which pages the headings
appeared
4) Pasting the preliminary ToC in the Nroff document
5) compiling the text to allow pages breaks to adjust due to the added ToC
6) Analyzing the text to figure out where the headings finally ended up
7) Updating the ToC with final data.


These steps happens each time you press update<F3>  or when you save the
document. The ToC is always correct in the compiled txt document.

Yes. YES! (sorry :-).

But this thread is NOT about NRoffEdit, it's about how to automatically generate a ToC with NRoff. Because that's what the RFC Production Center uses and what is specified as target in the xml2rfc SoW.

Best regards, Julian

_______________________________________________
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf

Reply via email to