Article View: net.text
Article #5tabs in troff
From: Terry Grevstad
Date: Fri, 04 Oct 1985 21:36
Date: Fri, 04 Oct 1985 21:36
39 lines
2211 bytes
2211 bytes
For those of you out there who seem to have had the same problems that
I did in getting tabs to work in troff, I found a nifty little
solution.
Putting tabs into a macro makes the "\t" command work, but sometimes
putting things into macro form is more hassle than it's worth. SO...
define a string as the "\t" command. It works just fine. I did it
like this:
.nf
.ta 1i 3i 5i
.tc
.ds T \t
\*TThe\*Ttabs\*Twork
\*Tjust\*Tfine\*Tnow
and, if you have a terminal with programmable keys, you can program
your \*T into one of the keys and use it instead of a tab key.
I don't know why tabs per se won't work for me. Maybe my terminal
just doesn't create the appropriate tab character (Wyse 75), maybe
"vi" doesn't. But they *DON'T* work, so don't bother flaming me
and insisting they *DO* work. I'm just happy I've discovered a
relatively painless way to get the output I want.
And, since I'm obviously not the only person with this problem by the
amount of mail I received regarding my original posting, I thought I
would pass along what I have learned.
--
\"\t\f1A\h'+1m'\f4\(mo\h'+1m'\f1the\h'+1m'\f4\(es\t\f1\c
_______________________________________________________________________
Terry Grevstad
Network Research Corporation
{sdcsvax,hplabs}!sdcrdcf!psivax!nrcvax!terry
ucbvax!calma!nrcvax!terry
Technical Details
Message-ID:
<318@nrcvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!hao!hplabs!sdcrdcf!psivax!nrcvax!terryShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site nrcvax.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!hao!hplabs!sdcrdcf!psivax!nrcvax!terry From: terry@nrcvax.UUCP (Terry Grevstad) Newsgroups: net.text Subject: tabs in troff Message-ID: <318@nrcvax.UUCP> Date: Fri, 4-Oct-85 17:36:53 EDT Article-I.D.: nrcvax.318 Posted: Fri Oct 4 17:36:53 1985 Date-Received: Tue, 8-Oct-85 04:20:27 EDT Reply-To: terry@nrcvax.UUCP (Terry Grevstad) Organization: Network Research Research Corp. Oxnard,CA Lines: 39