groff
[Top][All Lists]
Advanced

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

Re: [Groff] underlining


From: Ralph Corderoy
Subject: Re: [Groff] underlining
Date: Tue, 08 Jul 2014 11:11:10 +0100

Hi Peter,

> Have a look at om.tmac, the macro definition '.de ul*ps'.

http://git.savannah.gnu.org/cgit/groff.git/tree/contrib/mom/om.tmac#n175
OK, so it takes the normal grops definitions, e.g.

    /Q{moveto show}bind def

and replaces them with its own,

    /Q { moveto X show Y } def

where X saves the current place on the page and Y draws a line from
there to the new, post-show, place.  (Q can't bind the definition since
X and Y switch definitions between doing nothing and drawing the line.)

One thought, if grops grows some more definitions, it might hit X as
it's currently up to T.  Perhaps grops should declare a prefix it won't
use that's available for the user?

Cheers, Ralph.



reply via email to

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