🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #5632

Need to change table of contents page numbering in MM

#5632
From: David Wolverton
Date: Thu, 05 Jan 1989 22:32
16 lines
1030 bytes
I'm writing an "appendix" macro in troff with MM macros.  I want
the pages numbered like A-1, A-2, etc.  I can get this numbering
at the top of the pages themselves, but the page numbers listed
in the table of contents (TOC) come out as 1.

I'm resetting the page number in register P to 1 for each appendix,
and using .HU to print the appendix title, which is why I get the
number 1 in the TOC for each appendix.  I don't mind abandoning .HU
if there is some other way to put an entry into the TOC that has
the same appearance as that generated by .HU, except with page
numbers like A-1, B-1, etc.

Anybody have an idea?

Dave Wolverton
...!att!houxs!daw or daw@houxs.att.com
Technical Details
Message-ID: <1104@houxs.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!rutgers!att!whuts!homxb!houxs!daw

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ucsd!rutgers!att!whuts!homxb!houxs!daw
From: daw@houxs.ATT.COM (David Wolverton)
Newsgroups: comp.text
Subject: Need to change table of contents page numbering in MM
Message-ID: <1104@houxs.ATT.COM>
Date: 5 Jan 89 22:32:13 GMT
Organization: AT&T Bell Labs, Holmdel NJ
Lines: 16