groff
[Top][All Lists]
Advanced

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

Re: [Groff] Groff Pic and colored objects!


From: Dean Allen Provins, P. Geoph.
Subject: Re: [Groff] Groff Pic and colored objects!
Date: Fri, 23 May 2008 16:04:14 -0600
User-agent: Mutt/1.5.13 (2006-08-11)

Pod:

On Fri, May 23, 2008 at 11:38:35PM +0200, pod wrote:
> Hi Dean
> 
> I tested it on my Kubuntu (GNU troff (groff) version 1.18.1 / 
> Ghostscript SVN PRE-RELEASE 8.61) and on my Suse System (Groff version 
> 1.18.1 / ESP Ghostscript 8.15.3) but the failure exists on both systems.
> May it possible that you have some additional packages installed, which 
> I dont have? The problem has to do something with the colors. I made a 
> few tests:
> *No failure but I get black boxes: *
> .PS
> box width 3 height 3 shaded "gray";   //I get a black box
> .PE
> 
> .PS
> box width 3 height 3 shaded "yellow98";  //I also get a black box?
> .PE
> 
> *Failure with:*
> .PS
> box width 3 height 3 shaded "grey";
> .PE
> *and*
> .PS
> box width 3 height 3 shaded "grey98";
> .PE
> 
> So there must be something wrong with the colors. Maybe I dont have 
> these colors on my systems?
> 
> thx best regards pod

I now have the following code, that creates a 3 page output.  

***NOTE***:  I am using the "ms" macros to create it, so that may have
some bearing on the problem.  The commandline being executed is (it is
my standard invocation):

  groff -etpU -ms -Tps file | ps2pdf - > file.pdf

and the file reads:

.LP
.PS
box height 0.3 color "black" "foofoo" shaded "yellow" ;
arrow arrowwid 1;
box width 3 height 3 shaded "grey98";
{"foofoo" at last box .n + (0,-0.1);}
box  width 1.8 height 1.5 shaded "pink" at last box .w + (1.5,0);
.ps 8
{"\fBfoofoo()\fR" at last box .n + (0,-0.3);}
.PE

.\" Pod gets a black box - change "gray" to "grey98"
.PS
box width 3 height 3 shaded "grey95";
.PE

.\" Pod gets a black box - drop the "98" and see page 2
.PS
box width 3 height 3 shaded "yellow";
.PE

.\" *Failure with:* both the following - OK, see pp. 2 and 3
.PS
box width 3 height 3 shaded "grey";
.PE

.PS
box width 3 height 3 shaded "grey98";
.PE

Dean

-- 
                           Dean Provins, P. Geoph.
                         address@hidden
                  KeyID at at pgpkeys.mit.edu:11371: 0x9643AE65
          Fingerprint: 9B79 75FB 5C2B 22D0 6C8C 5A87 D579 9BE5 9643 AE65

Attachment: file.pdf
Description: Adobe PDF document


reply via email to

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