groff
[Top][All Lists]
Advanced

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

Re: [Groff] Inserting raw PostScript output


From: Werner LEMBERG
Subject: Re: [Groff] Inserting raw PostScript output
Date: Thu, 10 Oct 2002 08:04:17 +0200 (CEST)

> I'm playing around with some macros to change text colour in
> PostScript output from groff.  I've written the following macro:
> 
>   .de colour
>   \X'ps: exec \\$1 \\$2 \\$3 setrgbcolor'
>   ..
> 
> This works, up to a point.  The trouble is that it offsets the
> remainder of the text by 10 points down, presumably a line space.  How
> can I get rid of this?  I've tried adding a \v'-10p' to the macro, but
> this has no effect.

Try a final `\c'.

> 
> Apart from that question, of course, there's a more obvious one: is
> there a better way to do this?

Yes.  Download groff 1.18.1 which has native color support.


    Werner

reply via email to

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