Enscript question: Making page colored

Joel Hammer Joel
Mon May 17 11:51:51 PDT 2004


> \shade{val}

I tried this and didn't quite get what I wanted. So, I went back to
basics (really) and read the first chapter about postscript again and
then looked at the postscript which enscript generates. There is a Box
routine generated in enscript's standard postscript output, so, this text
file gives a nice blue page on which are displayed two small pictures
(jpg's) side by side (converted to encapsulated postscript by convert).

^@ps{gsave 0 0 1 setrgbcolor 5 5 500 760 Box fill grestore}
^@epsf[h2i n ]{junk1.epsi}
^@epsf[h2i x3i y-1]{junk2.epsi}

enscript is run with this command:

enscript -o junk.ps junk.txt -e 

If you want to get this to work, of course, you have to generate the
control code for zero, not the two characters ^@. On my keyboard [cntrl v][0]
(followed by your next character or space) works. At least in vi in insert
mode.


Joel


On Thu, Aug 28, 2003 at 11:29:02PM -0400, Kurt Wall wrote:
> Quoth Joel Hammer:
> > Does anyone know a way to make enscript produce output with the entire
> > page colored, not just the text background?
> 
> Add 
> 
> 
> to the top of the document, where val is a decimal value between
> 0 and 1. Then, invoke enscript as
> 
> $ enscript -e\\ foo -o foo.ps
> 
> That gives you a shaded background, but I couldn't make the text
> visible.
> 
> > Enscript will take raw postscript. Is there a way to make postscript make
> > the whole page a particular color?
> 
> Kurt
> -- 
> The only thing to do with good advice is pass it on.  It is never any
> use to oneself.
> 		-- Oscar Wilde
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users


More information about the Linux-users mailing list