From Newsgroup: comp.lang.postscript
On 01/26/2021 12:39 PM, Phillip Helbig (undress to reply) wrote:
Although not always elegant, I've always managed, with some combination
of LaTeX, \includegraphics, and PostScript commands, to get the
PostScript files I want included where and at the size I want them.
The file below was created from a PDF file via ghostscript. In itself,
it is fine; ghostscript and gv show it as it should be. However, when I
try to include it, when viewed on the screen it flashes briefly into
view before disappearing.
Is it not encapsulated PostScript? If that is the problem, can
ghostscript create such a file from a PDF file. Or is there some other problem?
Presumably one could use some arguments to \includegraphics and/or edit
the PostSCript file (included below; it's not large) to make it work.
Any help would be appreciated, as would an explanation of why it works,
so that I can learn something.
For various reasons, I don't want to use pdflatex.
I use the following code in PostScript documents that are going to
include eps files:
----------------------------------
/BeginEPSF {
/b4_Inc_state save def
/dict_count countdictstack def
/op_count count 1 sub def
userdict begin
/showpage {} def
0 setgray 0 setlinecap 1 setlinewidth 0 setlinejoin
10 setmiterlimit [] 0 setdash newpath
/languagelevel where
{ pop languagelevel 1 ne
{ false setstrokeadjust false setoverprint } if
} if
} bind def
/EndEPSF {
count op_count sub {pop} repeat
countdictstack dict_count sub {end} repeat
b4_Inc_state restore
} bind def
---------------------------------
and then use something like the following to place the eps where I want it:
BeginEPSF 100 100 translate .5 .5 scale (simple.eps) run EndEPSF
This also allows the eps to be used in a cached PostScript form which
speeds up printing and reduces file size such as a complex logo that is
on hundreds of pages.
Jeff Coffield
www.digitalsynergyinc.com
--- Synchronet 3.21d-Linux NewsLink 1.2