ietf
[Top] [All Lists]

Re: Automatically updated Table of Contents with Nroff

2010-12-22 11:21:53
   # empty out toc.input
toc.input
   # run once to get a sample ToC, but page numbers will be off
   nroff file > /dev/null 2> toc.input
   # run again to get proper page numbers into toc.input
   nroff file > /dev/null 2> toc.input
   # run a 3rd time to get the right output, ignoring stderr this time
   nroff file 2>/dev/null

You know, this whole discussion renews my total puzzlement at why
anyone would use nroff instead of something else... anything else.

Yow!

I know that not everyone likes xml2rfc, but I don't even want to think
about nroff.

Barry
_______________________________________________
Ietf mailing list
Ietf(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/ietf