Enscript question: Making page colored
joel
joel
Mon May 17 11:52:26 PDT 2004
I hope you found it useful.
A knowledge of enscript and postscript have been very helpful to me in
various situations, like printer problems and formatting problems.
Knowing postscript is like knowing html. There are editors around to
generate html for you, but, getting under the hood is important.
Joel
Kurt Wall wrote:
>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
>
>
More information about the Linux-users
mailing list