🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd
Article #154

-me macros: bug with chapter type

#154
From: John Robert LoVerso
Date: Mon, 31 Aug 1992 03:13
51 lines
1620 bytes
Index: misc net2

Description:
	If a paper has a ".++ P" section (numbered in roman numerals)
	followed by a ".++ C" section (numbered in digits, from 1),
	the page numbers will go "i, 2, 1, 2, ...".  This is because
	a ".pn 1" is used after the .++ macro ends the page.  This exists
	in all copies of tmac.e I've seen.  I'm working with the one
	from bnr2:
		tmac.e	2.35 (Berkeley) 4/17/91

Repeat-By:
	Use a paper like:
		.he ''%''
		.++ P
		(page i)
		.++ C
		(should be page 1, but is page 2)
		.bp
		(should be page 2, but is page 1)
		.bp
		(should be page 3, but is page 2)

Fix:
	Move the reset-of-page-number for when leaving a .++ P section
	to before the ".ep".

*** tmac.e.bnr2	Sun Aug 30 23:00:38 1992
--- tmac.e	Sun Aug 30 23:01:02 1992
***************
*** 997,1002 ****
--- 997,1004 ----
  .nr ch 0 1
  .if (\\n(_0=3):(\\n(_0=5) \
  .	pn 1			\" must do before .ep
+ .if !\\n(_0=\\n(_M .if \\n(_M=3 \
+ .	pn 1			\" must do before .ep
  .ep				\" end page for correct page number types
  .if \\n(_0=1 \
  \{\
***************
*** 1016,1023 ****
  .	af % 1
  .if \\n(.$>1 \
  .	he \\$2
- .if !\\n(_0=\\n(_M .if \\n(_M=3 \
- .	pn 1
  .nr _M \\n(_0
  .rr _0
  ..
--- 1018,1023 ----
Technical Details
Message-ID: <1992Aug31.031330.25236@osf.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!think.com!paperboy.osf.org!loverso

Show Full Headers
Complete Article Headers
Newsgroups: comp.bugs.4bsd
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!think.com!paperboy.osf.org!loverso
From: loverso@osf.org (John Robert LoVerso)
Subject: -me macros: bug with chapter type
Message-ID: <1992Aug31.031330.25236@osf.org>
Sender: news@osf.org (USENET News System)
Organization: OSF Research Institute, Cambridge MA
Date: Mon, 31 Aug 1992 03:13:30 GMT
Lines: 51