[net.text] Three columns in troff

jaap@mcvax.UUCP (Jaap Akkerhuis) (02/13/85)

Since this mail got bounced due to "550 jeffg... User unknown" and it
could be useful for other people as well, I post this to net.text.

(Original message was the question how to do three columns in troff. I
answered by mail to use .MC with the -ms macro's)

	>My MS manual doesn't mention .MC.  I guess I'll look in /usr/lib/tmac
	>for it.

The old manual (V7, 4.?BSD etc.) does, but since at&t shuffeled all
manuals around in sys III & V, (and deleted remarks about the less used
features) of the textprocessing manuals, it could have been deleted.

In the old manual (UNIX Programmer's manual, Volume 2A, Typesetting
documents ... by M. E. Lesk) it is (cryptically) explained at page 2.
It is also (just as clearly) documented in the manual page (man 7 ms).

If you cannot figure out how to use it, just ask. I have used it a couple
of years ago, and when kicked I can probably quickly find out about
the details.

WAIT, STOP THE PRESSES. I couldn't resist it. This is what you want to
do.

The input file:

.\" short page for testing
.pl 10c
.\" Line length to 9c + 2c for allowing inter column gap of 1c
.nr LL 11c
.\" Initialise the ms-package
.RT
.\" ask for column width of 3c with inter column gap of 1c, so we will
.\" get three columns.
.MC 3c 1c
.\" some (random) data
hallo hallo hallo hallo hallo hallo hallo hallo hallo hallo hallo hallo
hallo hallo hallo hallo hallo hallo hallo hallo hallo hallo hallo hallo
hullo hullo hullo hullo hullo hullo hullo hullo hullo hullo hullo hullo
hullo hullo hullo hullo hullo hullo hullo hullo hullo hullo hullo hullo
hello hello hello hello hello hello hello hello hello hello hello hello
hello hello hello hello hello hello hello hello hello hello hello hello

And here is the output:

[Some empty lines removed]

         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello  hello
         hallo  hallo    hullo  hullo    hello hello



                      February 7, 1985


[End of output of "nroff -ms input | col"]

Well, I hope this answered the question completly. Have fun with it.

	Jaap Akkerhuis (mcvax!jaap).