groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Jumping to the next column


From: Louis Guillaume
Subject: Re: [Groff] Jumping to the next column
Date: Thu, 12 Apr 2012 21:58:36 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1

On 4/12/12 7:05 PM, Ralph Corderoy wrote:
Hi Louis,

In groff_ms, 2 column mode, how does one jump to the next column?

Saying a large amount of vertical space is needed with .ne works, though
there may be an official better way.  Also, note how the top of the
second column ends up starting higher.

     $ (seq 20; echo .PP; echo .2C; seq 42;
     >      echo .br; echo .ne 10i; seq 42 -1 1) |
     >  nroff -ms |
     >  cat -s

     1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

                                     42  41  40 39 38 37 36 35 34
     1  2  3 4 5 6 7 8 9 10 11 12    33 32 31 30 29 28 27  26  25
     13 14 15 16 17 18 19  20  21    24  23  22 21 20 19 18 17 16
     22  23  24 25 26 27 28 29 30    15 14 13 12 11 10 9 8 7 6  5
     31 32 33 34 35 36 37  38  39    4 3 2 1
     40 41 42

     $

Cheers, Ralph.


That does the trick quite nicely. Thank You!

I also noticed that the second column does start higher even without the .ne. And the first column seems to be short a line if we're at the bottom of the page. Is this a bug?

Louis



reply via email to

[Prev in Thread] Current Thread [Next in Thread]