🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6689

Re: TROFF Leaders inside fields.

#6689
From: Jaap Akkerhuis
Date: Mon, 08 Jan 1990 17:47
26 lines
1299 bytes
Excerpts from netnews.comp.text: 6-Jan-90 TROFF Leaders inside fields.
Henry -- S. Products@Sun (1546)

> Calling all TROFF Wizards.  There seems to be a limitation
> with what you can do with the leader character inside a
> field.  I have a sequence something like:

etc.
>  Are fields scanned twice?

Yep. It is not a great idea too use leaders inside fields, but if you
really have to, this works:

    .ta  4.0i           \"  tab at four inches
    .fc  #  @           \"  field char is #, pad is @
    .nf
    #string one \s6^A\s0#       \"  want the leader smaller size
    #string string two\s6^A#
    #\s0string three \s6^A#

(Replace the ^A with the actual leader character)

There are of course better ways to achieve the same effect. That is left
over as an excercise to the reader.

	jaap
Technical Details
Message-ID: <MZeB8fu00VswM2MlAM@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+
References: <129957@sun.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!jaap+
From: jaap+@andrew.cmu.edu (Jaap Akkerhuis)
Newsgroups: comp.text
Subject: Re: TROFF Leaders inside fields.
Message-ID: <MZeB8fu00VswM2MlAM@andrew.cmu.edu>
Date: 8 Jan 90 17:47:23 GMT
References: <129957@sun.Eng.Sun.COM>
Organization: Information Technology Center, Carnegie Mellon, Pittsburgh, PA
Lines: 26
In-Reply-To: <129957@sun.Eng.Sun.COM>