🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #5229

Re: Underlining in Troff

#5229
From: P. L. Sullivan
Date: Mon, 26 Sep 1988 16:42
17 lines
1149 bytes
In article <2610013@hpsal2.HP.COM> morrell@hpsal2.HP.COM (Michael Morrell) writes:
>Does anyone have a macro which does proper underlining in troff.

In case you're using LaserJets (or anything else that has a similar built-in
underlining capability), the following technique may help.

We defined two special characters in the S font: ``\(US'' and ``\(UE'' to
start and end underlining.  The post-processor translates these into the
sequences ``\033&dD'' and ``\033&d@'' for the LaserJet family.

The only real kludge with this technique is that we need to tell troff to
do these characters zero width; e.g.,

	The word \z\(USunderlined\z\(UE is underlined.

========================================================
Pat Sullivan {gatech|att|akgua}!sorsac!pls (404)573-7382
Technical Details
Message-ID: <293@sorsac.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!akgua!sorsac!pls
References: <2610013@hpsal2.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!akgua!sorsac!pls
From: pls@sorsac.UUCP (P. L. Sullivan)
Newsgroups: comp.text
Subject: Re: Underlining in Troff
Message-ID: <293@sorsac.UUCP>
Date: 26 Sep 88 16:42:35 GMT
References: <2610013@hpsal2.HP.COM>
Reply-To: pls@sorsac.UUCP (P. L. Sullivan)
Organization: AT&T Southern Region, Atlanta
Lines: 17