The usual way to generate a TOC is to use .tm directives which write
the TOC to the standard error, which you capture in a file using
the usual Unix shell redirection. Then you rerun nroff using .so
to include that file up at the front where the TOC goes.
That's what I understood from previous threads, but I had no idea how to get
that second output stream (I was staring at ".open" earlier today).
PS: You could use .open and .write but they are a recent (circa 1990)
addition so I haven't gotten around to using them yet.
Regards,
John Levine, johnl@xxxxxxxx, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. http://jl.ly
_______________________________________________
Ietf mailing list
Ietf@xxxxxxxx
https://www.ietf.org/mailman/listinfo/ietf