groff
[Top][All Lists]
Advanced

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

Re: [Groff] fractional point sizes with -ms


From: Jon Snader
Subject: Re: [Groff] fractional point sizes with -ms
Date: Tue, 6 Jan 2004 11:33:46 -0500
User-agent: Mutt/1.4.1i

On Tue, Jan 06, 2004 at 03:36:40PM +0100, Werner LEMBERG wrote:
> 
> I've investigated how to extend the -ms macro package to support
> fractional point sizes in a backwards compatible way.  Until now I've
> only found one solution which is rather ugly but should work with
> virtually all older documents also.
> 
> The idea is to specify `point size * 100':
> 
>   .nr PS 1225   \" 12.25pt
> 
> Since probably no document will ever ask for a document size of 300pt
> or larger, it is straightforward to add code like this:
> 
>   .ie \n[PS] >= 300 \
>   .  ps (\n[PS]z / 100u)
>   .el \
>   .  ps \n[PS]
> 
> Similar code could be added for \n[VS], \n[FPS], and \n[FVS] also.
> 
> What do you think?
> 

Sounds OK to me.  The only other way I see is to add a register
to condition the division on:

        .ie \n[FRAC-PS] > 0 \
        .    ps (\n[PS]z / 100u)
        .el \
        .    ps \n[PS]

but your method is more transparent and certainly no more objectionable
than the above.

jcs

reply via email to

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