Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!lll-lcc!styx!ames!ucla-cs!sdcrdcf!smeagol!earle
From: earle@smeagol.UUCP (Greg Earle)
Newsgroups: news.software.b,news.admin
Subject: Bug in `.ux' macro in 2.11 doc/tmac.n USENET TROFF macros ; fix
Message-ID: <785@smeagol.UUCP>
Date: Sat, 20-Dec-86 01:36:21 EST
Article-I.D.: smeagol.785
Posted: Sat Dec 20 01:36:21 1986
Date-Received: Sat, 20-Dec-86 22:42:21 EST
Organization: Jet Propulsion Laboratory, Pasadena  CA
Lines: 82
Keywords: troff  doc/tmac.n  2.11
Xref: mnetor news.software.b:127 news.admin:84

Description:
	When a document using the Netnews `-mn' macros uses the `.ux' macro
	to print out the word `UNIX', it checks a number register to see
	if this is the first time the macro has been invoked.  If so, it prints
	the word `UNIX' followed by the Registered Trademark symbol, (R)
	(Sorry, that's as close as I can come :-) and of course puts in the
	obligatory footnote at the bottom of the page.  Unfortunately, the
	rest of the text on the line after the Trademark symbol is printed
	*below* the text preceeding the `UNIX(R)'; i.e., the vertical space
	in the current diversion is wrong.

Repeat-by:
	Use your favorite version of troff, and send the following pages to
	your favorite Laser printer or typesetter:
	manner.mn:	Page 4	[{yerfave}troff -mn -o4  manner.mn]
	howto.mn:	Page 1	[{yerfave}troff -mn -o1  howto.mn]
	standard.mn:	Page 10 	"	"   -o10 standard.mn
	install.mn:	Page 6		"	"   -o6  install.mn

	Scan the outputted page for the line with `UNIX(R)'.  Look at the
	text after it.

Fix:
	Apply the following diff to doc/tmac.n; the effect of the patch is
	to reverse the order of `\\s0\\d' to be `\\d\\s0'.  *Note*: This
	has the side effect of placing the `(R)' symbol slightly lower in
	relation to the `UNIX is a registered trademark of AT&T' text in
	the footer.  I believe it is still aesthetically pleasing, and
	clearly discernable as a footnote.  Also, it seems to leave a little
	space between the `(R)' and the next word; this is not aesthetically
	pleasing but seems better than the alternative.  Unfortunately, this
	might imply that the following is not the `correct' fix.  If this is 
	not the `correct' fix, then Rick or Matt please let us know.

*** doc/tmac.n.dist	Mon Dec  1 22:05:51 1986
--- doc/tmac.n	Fri Dec 19 22:14:56 1986
***************
*** 521,527
  .ie \\n(ux \\&\\$2\\s-1UNIX\\s0\\$1
  .el \{\
  .	nr ux +1			\" mark footnote as dropped
! \\&\\$2\\s-1UNIX\\s0\\s-5\\u\\*(rg\\s0\\d\\$1
  .	fn				\" put out the footnote
  \\&\\s-5\\u\\*(rg\\s0\\dUNIX is a registered trademark of AT&T.
  .	ef				\" short and sweet ...

--- 521,527 -----
  .ie \\n(ux \\&\\$2\\s-1UNIX\\s0\\$1
  .el \{\
  .	nr ux +1			\" mark footnote as dropped
! \\&\\$2\\s-1UNIX\\s0\\s-5\\u\\*(rg\\d\\s0\\$1
  .	fn				\" put out the footnote
  \\&\\s-5\\u\\*(rg\\d\\s0UNIX is a registered trademark of AT&T.
  .	ef				\" short and sweet ...
***************
*** 523,529
  .	nr ux +1			\" mark footnote as dropped
  \\&\\$2\\s-1UNIX\\s0\\s-5\\u\\*(rg\\s0\\d\\$1
  .	fn				\" put out the footnote
! \\&\\s-5\\u\\*(rg\\s0\\dUNIX is a registered trademark of AT&T.
  .	ef				\" short and sweet ...
  .\}
  ..

--- 523,529 -----
  .	nr ux +1			\" mark footnote as dropped
  \\&\\$2\\s-1UNIX\\s0\\s-5\\u\\*(rg\\d\\s0\\$1
  .	fn				\" put out the footnote
! \\&\\s-5\\u\\*(rg\\d\\s0UNIX is a registered trademark of AT&T.
  .	ef				\" short and sweet ...
  .\}
  ..

--
	Greg Earle	UUCP: sdcrdcf!smeagol!earle; attmail!earle
	JPL		ARPA: elroy!smeagol!earle@csvax.caltech.edu
			      smeagol!earle@usc-oberon.usc.edu
			      earle@jplpub1.jpl.nasa.gov (For the daring)
			AT&T: +1 818 354 4034

...I'm IMAGINING a sensuous GIRAFFE, CAVORTING in the BACK ROOM
of a KOSHER DELI --