🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #3975

Re: Constant-width macros for MM

#3975
From: wjc
Date: Thu, 27 Aug 1987 14:08
33 lines
1956 bytes
Posting-Front-End: GNU Emacs 18.47.1 of Fri Jun 26 1987 on ho5cad (usg-unix-v)


In article <507@houxs.UUCP> daw@houxs.UUCP (Dave Wolverton) writes:
>>   [about some CW macros he supplies]
>>
>>   I have used these for about 6 months, outputting to an Imagen 8/300.  In that 
>>   time the only strange behavior (which I would like to know how to fix) is:
>>
>>   1)  There is a slight, but noticable, gap of space in front of a word set in 
>>	   constant width type with any of .C, .CR, .CI, .CB
>>

The reason for the gap is that the interword gap in  troff is 1/3 "m".
In other words, it depends on the general width of the font in effect.
If  you have different fonts before  and after an interword gap, troff
uses the "m" of the trailing font, in this case \f(CW.

Universal fix is to  replace all instances  of "\f(CW" with "\&\f(CW".
Now, troff sees  a zero-width space of  the same font  as the previous
word.   The font   change occurs after  the   interword gap  has  been
emitted.

BTW, this also  causes problems when  switching back and forth between
italic and other fonts (e.g., \fIS\fRl),  but with the Computer Modern
fonts used in many Imagens, its most noticable with the CW font.

	Bill Carpenter
	(AT&T gateways)!ho5cad!wjc
	HO 1L-410, (201)949-8392

PS:- I learned this tip from Narain  Gehani's "Document Formatting and
Typesetting on the UNIX System" (Silicon Press).
Technical Details
Message-ID: <210@ho7cad.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!think!ames!ptsfa!ihnp4!homxb!ho7cad!wjc
References: <507@houxs.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!think!ames!ptsfa!ihnp4!homxb!ho7cad!wjc
From: wjc@ho5cad.ATT.COM
Newsgroups: comp.text
Subject: Re: Constant-width macros for MM
Message-ID: <210@ho7cad.ATT.COM>
Date: Thu, 27-Aug-87 10:08:20 EDT
Article-I.D.: ho7cad.210
Posted: Thu Aug 27 10:08:20 1987
Date-Received: Sat, 29-Aug-87 13:17:49 EDT
References: <507@houxs.UUCP>
Sender: nuucp@ho7cad.ATT.COM
Lines: 30
In-reply-to: daw@houxs.UUCP's message of 26 Aug 87 19:37:14 GMT