groff
[Top][All Lists]
Advanced

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

Re: [Groff] Converting basic units to inches in PostScript


From: Larry Kollar
Subject: Re: [Groff] Converting basic units to inches in PostScript
Date: Wed, 03 Aug 2016 10:40:04 -0400

> John Gardner <address@hidden> wrote:
> 
> I'm using the dl register to set page indent with .in, which works fine in
> nroff, but generates absurdly large sizes in groff. For instance, a
> diversion with a width of 624 in TTY output becomes 286946 in PostScript.
> 
> I'm aware this is connected to the matter of device resolution, but is
> there any way to reliably convert the device's "native units" (?) into
> inches, or what-have-you? I tried making use of the .H register, but it's
> reporting a value of 1 for PostScript. Oddly, it's reporting 24 for
> terminal output.

Is there some reason you can’t use device-independent units like inches or ens?

.in 1i \” One inch indent on all devices
.in 6n \” Six ens, (1 en is roughly the current text size)

— Larry


reply via email to

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