groff
[Top][All Lists]
Advanced

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

Re: [Groff] Weird behavior of pic with colors


From: Tadziu Hoffmann
Subject: Re: [Groff] Weird behavior of pic with colors
Date: Fri, 20 Sep 2002 10:34:14 +0200
User-agent: Mutt/1.3.22.1i

> > It seems to me that the arrowhead must be filled with the same color
> > as the rest of the arrow. So instead of a \D'f ...' a
> > \M[current glyph color] and \M[] must be used around the \D'P ...'.
> > But there is no request for the current glyph color available.
> 
> Color handling of pic is intended to be independent of color handling
> in groff.  It assumes that at the beginning of the picture both glyph
> and fill color is set to the default value.  I will add this info
> also.
> 
> With other words, making a picture red by saying `\m[red]\M[red]'
> before .PS is not possible in general.  I don't know whether this is
> a desirable feature -- it is not trivial to implement.

Actually, a shade value is not really necessary anymore now that
groff intrinsically supports color, since a shade can always be
represented by an appropriate color value.  Here's my workaround
to the arrowhead problem:

  soelim test.troff |
    pic |
    grep -v '\\D.f' |
    tbl |
    eqn |
    troff -UF. |
    grops -F. >test.ps

in other words, simply remove the shade requests from the
intermediate output from pic.  (I think the following ".sp -1"
should also be removed, but up to now the simple solution worked
for me.)  The only disadvantage is that you have to specify the
pipeline yourself.  (Or you hack pic to ignore shades.)




reply via email to

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