🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #5220

Underlining in Troff

#5220
From: Michael Morrell
Date: Fri, 23 Sep 1988 02:19
20 lines
1098 bytes
Does anyone have a macro which does proper underlining in troff.  The one
supplied in the nroff/troff manual works provided the string to be underlined
does not cross a line.  For example, the following input failed miserably:

   .de us
   \\$1\l'|0\(ul'
   ..
   This is some text before the underlined stuff.
   This is some more text before the underlined stuff.
   .us "This is a very long line which will mess up the .us macro."

I got an underline of the appropriate length but it was all on the second line
with the last part of the "This is a very long line ..." sentence.

Any help would be greatly appreciated.  Thanks,

  Michael

P.S. The "u" macro supplied with the me macros is almost identical to the
above definition, and therefore, fails also.
Technical Details
Message-ID: <2610013@hpsal2.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!hpda!hpcupt1!hpsal2!morrell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!hpda!hpcupt1!hpsal2!morrell
From: morrell@hpsal2.HP.COM (Michael Morrell)
Newsgroups: comp.text
Subject: Underlining in Troff
Message-ID: <2610013@hpsal2.HP.COM>
Date: 23 Sep 88 02:19:48 GMT
Organization: HP System Architecture Lab, Cupertino
Lines: 20