sch (03/29/83)
I am trying to use the -me nroff macro package to format up a fairly large paper, and am having troubles with my table of lists and figures. I keep track of the current figure in number register NF and current table in number register NT. I have attempted several ways to write two macros (one for figures and one for tables) that enter the names in the approriate table and increment NT or NF as appropriate. The macros are also supposed to print out the Table/Figure in the current context. The problem is that these get used in floating keeps so it is necessary to use \! to delay the page number in the table of contents. What I want is to say .FG "Anatomy of a Fly" and have this show up as Figure 5. Anatomy of a Fly on the current page, and also enter it into the table with .(x .)x Unfortunately, all my attempts have ended up with a mess, or figures numbered or the page number or wrong. More commonly nroff just hiccups and says "Out of temp file space". Our nroff (on 4.1BSD) is compiled with BIG set equal to 512 which should mean a whopping big temp file is possible. Any ideas? Stephen Hemminger