groff
[Top][All Lists]
Advanced

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

Re: [Groff] groff postscript output rotated 90 degrees in for a 4 x 2.5


From: Ralph Corderoy
Subject: Re: [Groff] groff postscript output rotated 90 degrees in for a 4 x 2.5 inch label?
Date: Mon, 09 Jun 2014 11:15:50 +0100

Hi Mike,

Ted wrote:
> It is, however, possible to rotate parts of a page (keeping the pager
> as a whole unrotated) if you are using PostScript output.

Inspired by Werner's
http://lists.gnu.org/archive/html/groff/2003-05/msg00042.html, I came up
with

    $ cat mike.tr
    .pl 4.0i
    .ll 2.5i
    .po 0
    .nf
    .
    \X'ps: exec -90 rotate -\n(.p u 0 u translate'
    .sp -1   \" Undo vertical effect of \X.
    10 Downing St
    London
    SW1A 2AA
    $ 
    $ groff -P -p4i,2.5i mike.tr >mike.ps

No need for external psutils?

Cheers, Ralph.



reply via email to

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