Enscript question: Making page colored

Kurt Wall kwall
Mon May 17 11:52:24 PDT 2004


Quoth Joel Hammer:
> > \shade{val}
> 
> I tried this and didn't quite get what I wanted. So, I went back to

I'm not surprised. No Postscript coder am I.

> 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}

Excellent stuff, Joel. Thanks!

> 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.

Kurt
-- 
Think of your family tonight.  Try to crawl home after the computer
crashes.


More information about the Linux-users mailing list