home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / bugs / 4bsd / 214 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.5 KB  |  62 lines

  1. Newsgroups: comp.bugs.4bsd
  2. Path: sparky!uunet!usc!sdd.hp.com!think.com!paperboy.osf.org!loverso
  3. From: loverso@osf.org (John Robert LoVerso)
  4. Subject: -me macros: bug with chapter type
  5. Message-ID: <1992Aug31.031330.25236@osf.org>
  6. Sender: news@osf.org (USENET News System)
  7. Organization: OSF Research Institute, Cambridge MA
  8. Date: Mon, 31 Aug 1992 03:13:30 GMT
  9. Lines: 51
  10.  
  11. Index: misc net2
  12.  
  13. Description:
  14.     If a paper has a ".++ P" section (numbered in roman numerals)
  15.     followed by a ".++ C" section (numbered in digits, from 1),
  16.     the page numbers will go "i, 2, 1, 2, ...".  This is because
  17.     a ".pn 1" is used after the .++ macro ends the page.  This exists
  18.     in all copies of tmac.e I've seen.  I'm working with the one
  19.     from bnr2:
  20.         tmac.e    2.35 (Berkeley) 4/17/91
  21.  
  22. Repeat-By:
  23.     Use a paper like:
  24.         .he ''%''
  25.         .++ P
  26.         (page i)
  27.         .++ C
  28.         (should be page 1, but is page 2)
  29.         .bp
  30.         (should be page 2, but is page 1)
  31.         .bp
  32.         (should be page 3, but is page 2)
  33.  
  34. Fix:
  35.     Move the reset-of-page-number for when leaving a .++ P section
  36.     to before the ".ep".
  37.  
  38. *** tmac.e.bnr2    Sun Aug 30 23:00:38 1992
  39. --- tmac.e    Sun Aug 30 23:01:02 1992
  40. ***************
  41. *** 997,1002 ****
  42. --- 997,1004 ----
  43.   .nr ch 0 1
  44.   .if (\\n(_0=3):(\\n(_0=5) \
  45.   .    pn 1            \" must do before .ep
  46. + .if !\\n(_0=\\n(_M .if \\n(_M=3 \
  47. + .    pn 1            \" must do before .ep
  48.   .ep                \" end page for correct page number types
  49.   .if \\n(_0=1 \
  50.   \{\
  51. ***************
  52. *** 1016,1023 ****
  53.   .    af % 1
  54.   .if \\n(.$>1 \
  55.   .    he \\$2
  56. - .if !\\n(_0=\\n(_M .if \\n(_M=3 \
  57. - .    pn 1
  58.   .nr _M \\n(_0
  59.   .rr _0
  60.   ..
  61. --- 1018,1023 ----
  62.