Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

convert this PostScript file to one which works with \includegraphics

9 views
Skip to first unread message

Phillip Helbig (undress to reply)

unread,
Jan 26, 2021, 3:39:15 PM1/26/21
to
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.

----------8<--------------------------------------------------------------------

%!PS-Adobe-3.0
%%Pages: (atend)
%%BoundingBox: 81 54 645 299
%%HiResBoundingBox: 81.198047 54.103906 644.089844 298.180469
%.....................................
%%Creator: GPL Ghostscript 902 (pswrite)
%%CreationDate: 2021/01/26 19:27:20
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%EndComments
%%BeginProlog
% This copyright applies to everything between here and the %%EndProlog:
% Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
%%BeginResource: procset GS_pswrite_2_0_1001 1.001 0
/GS_pswrite_2_0_1001 80 dict dup begin
/PageSize 2 array def/setpagesize{ PageSize aload pop 3 index eq exch
4 index eq and{ pop pop pop}{ PageSize dup 1
5 -1 roll put 0 4 -1 roll put dup null eq {false} {dup where} ifelse{ exch get exec}
{ pop/setpagedevice where
{ pop 1 dict dup /PageSize PageSize put setpagedevice}
{ /setpage where{ pop PageSize aload pop pageparams 3 {exch pop} repeat
setpage}if}ifelse}ifelse}ifelse} bind def
/!{bind def}bind def/#{load def}!/N/counttomark #
/rG{3{3 -1 roll 255 div}repeat setrgbcolor}!/G{255 div setgray}!/K{0 G}!
/r6{dup 3 -1 roll rG}!/r5{dup 3 1 roll rG}!/r3{dup rG}!
/w/setlinewidth #/J/setlinecap #
/j/setlinejoin #/M/setmiterlimit #/d/setdash #/i/setflat #
/m/moveto #/l/lineto #/c/rcurveto #
/p{N 2 idiv{N -2 roll rlineto}repeat}!
/P{N 0 gt{N -2 roll moveto p}if}!
/h{p closepath}!/H{P closepath}!
/lx{0 rlineto}!/ly{0 exch rlineto}!/v{0 0 6 2 roll c}!/y{2 copy c}!
/re{4 -2 roll m exch dup lx exch ly neg lx h}!
/^{3 index neg 3 index neg}!
/f{P fill}!/f*{P eofill}!/s{H stroke}!/S{P stroke}!
/q/gsave #/Q/grestore #/rf{re fill}!
/Y{P clip newpath}!/Y*{P eoclip newpath}!/rY{re Y}!
/|={pop exch 4 1 roll 1 array astore cvx 3 array astore cvx exch 1 index def exec}!
/|{exch string readstring |=}!
/+{dup type/nametype eq{2 index 7 add -3 bitshift 2 index mul}if}!
/@/currentfile #/${+ @ |}!
/B{{2 copy string{readstring pop}aload pop 4 array astore cvx
3 1 roll}repeat pop pop true}!
/Ix{[1 0 0 1 11 -2 roll exch neg exch neg]exch}!
/,{true exch Ix imagemask}!/If{false exch Ix imagemask}!/I{exch Ix image}!
/Ic{exch Ix false 3 colorimage}!
/F{/Columns counttomark 3 add -2 roll/Rows exch/K -1/BlackIs1 true>>
/CCITTFaxDecode filter}!/FX{<</EndOfBlock false F}!
/X{/ASCII85Decode filter}!/@X{@ X}!/&2{2 index 2 index}!
/@F{@ &2<<F}!/@C{@X &2 FX}!
/$X{+ @X |}!/&4{4 index 4 index}!/$F{+ @ &4<<F |}!/$C{+ @X &4 FX |}!
/IC{3 1 roll 10 dict begin 1{/ImageType/Interpolate/Decode/DataSource
/ImageMatrix/BitsPerComponent/Height/Width}{exch def}forall
currentdict end image}!
/~{@ read {pop} if}!
end def
%%EndResource
/pagesave null def
%%EndProlog
%%Page: 1 1
%%PageBoundingBox: 0 0 725 352
%%BeginPageSetup
GS_pswrite_2_0_1001 begin
725 352 null setpagesize
/pagesave save store 197 dict begin
0.1 0.1 scale
%%EndPageSetup
gsave mark
Q q
0 0 7252.88 3519.99 re
Y
251 170 24 rG
1281.47 1895.39 -468.99 -270.77 0 541.53 f
255 207 0 rG
812.48 1624.61 468.99 270.77 0 -541.54 f
245 131 69 rG
1281.47 1353.84 -468.99 -270.77 0 541.54 f
239 58 60 rG
812.48 1083.07 468.99 270.77 0 -541.53 f
189 186 174 rG
1281.47 2436.92 -468.99 -270.77 0 541.54 f
127 128 120 rG
812.48 2166.15 468.99 270.77 0 -541.53 f
174 203 126 rG
1750.46 2166.15 -468.98 270.77 0 -541.53 f
119 193 67 rG
1281.47 1895.39 468.98 -270.77 0 541.53 f
42 164 73 rG
1750.46 1624.61 -468.98 270.77 0 -541.54 f
0 141 71 rG
1281.47 1353.84 468.98 -270.77 0 541.54 f
0 102 179 rG
1281.47 812.31 468.98 -270.77 0 541.53 f
15 191 220 rG
1750.46 1083.07 -468.98 270.77 0 -541.53 f
160 93 166 rG
1750.46 1083.07 468.98 -270.76 0 541.53 f
91 44 136 rG
2219.44 812.31 -468.98 270.76 0 -541.53 f
0 118 130 rG
2688.43 2166.15 -468.98 -270.76 0 541.53 f
91 164 174 rG
2219.44 2436.92 468.98 270.77 0 -541.54 f
88 94 170 rG
2688.43 1083.07 -468.98 -270.76 0 541.53 f
128 160 211 rG
2219.44 1353.84 468.98 270.77 0 -541.54 f
Q q
0 0 7252.88 3519.99 re
Y
0 118 130 rG
3157.41 1465.49 89.54 0 0 -228.12 P
0 -63.07 17.91 -86.43 59.18 -86.43 c
33.47 0 56.05 15.58 84.85 52.94 c
0 261.61 89.54 0 0 -382.28 -73.19 0 -7 56.06 -2.34 0 p
-33.48 -39.71 -70.84 -65.4 -123.01 -65.4 c
-81.75 0 -117.57 55.27 -117.57 151.81 c
f
3584.05 1465.49 73.96 0 6.23 -51.4 3.12 0 P
34.24 33.49 73.17 60.74 125.34 60.74 c
81.75 0 117.57 -55.29 117.57 -151.83 c
0 -239.79 -89.54 0 0 228.12 p
0 63.05 -17.91 86.41 -59.95 86.41 c
-33.48 0 -55.27 -16.35 -87.19 -47.48 c
0 -267.05 -89.54 0 p f
4025.46 1083.21 89.5391 382.277 re
f
4181.93 1465.49 91.1 0 60.73 -198.54 P
10.11 -37.37 21.79 -76.3 31.92 -115.22 c
3.11 0 p
10.9 38.92 21.8 77.85 32.7 115.22 c
60.73 198.54 86.41 0 -130.01 -382.28 -103.56 0 p f
4832 1308.22 m
0 60.71 -25.69 97.32 -77.86 97.32 c
-45.15 0 -84.08 -33.48 -91.86 -97.32 c
h
4751.8 1474.83 m
103.56 0 158.06 -74.73 158.06 -181.4 c
0 -17.14 -1.56 -32.7 -3.89 -42.05 c
-242.92 0 p
7.79 -69.29 51.39 -108.22 112.9 -108.22 c
32.7 0 60.72 10.12 88.75 28.03 c
30.37 -56.07 p
-36.6 -24.13 -82.54 -41.25 -130.8 -41.25 c
-105.89 0 -188.42 73.96 -188.42 200.09 c
0 124.57 86.43 200.87 175.95 200.87 c
f
5003.26 1465.49 73.96 0 6.23 -67.75 3.12 0 P
27.25 49.84 67.73 77.09 108.21 77.09 c
19.47 0 31.92 -2.34 43.6 -7.79 c
-15.57 -77.85 p
-13.24 3.89 -23.35 6.22 -39.71 6.22 c
-30.35 0 -66.95 -21.03 -90.3 -78.63 c
0 -233.57 -89.54 0 p f
5293.63 1184.43 m
34.26 -26.47 66.96 -42.82 105.89 -42.82 c
41.26 0 60.73 19.46 60.73 45.93 c
0 31.92 -41.27 45.94 -81.75 61.5 c
-50.61 18.7 -107.45 47.49 -107.45 111.35 c
0 66.95 53.72 114.44 139.37 114.44 c
52.94 0 95.76 -21.8 126.9 -45.93 c
-41.27 -54.52 p
-26.46 19.47 -53.71 32.71 -84.08 32.71 c
-38.14 0 -56.05 -17.89 -56.05 -42.04 c
0 -29.58 38.15 -42.05 79.4 -56.83 c
52.17 -19.47 109.79 -44.39 109.79 -116.01 c
0 -65.4 -52.17 -118.34 -148.71 -118.34 c
-52.16 0 -107.44 22.57 -144.81 52.94 c
f
5633.85 1083.21 89.5391 382.277 re
f
5861.17 1394.64 -54.5 0 0 66.95 59.17 3.9 10.91 104.32 74.73 0 0 -104.32 97.32 0
0 -70.85 ^ 0 -182.2 P
0 -45.15 17.13 -66.95 53.72 -66.95 c
13.24 0 28.81 3.89 39.71 8.56 c
15.57 -66.18 p
-21.02 -7.01 -47.49 -14 -77.85 -14 c
-88.76 0 -121.46 56.05 -121.46 138.57 c
f
6362.54 1308.22 m
0 60.71 -25.69 97.32 -77.86 97.32 c
-45.15 0 -84.08 -33.48 -91.86 -97.32 c
h
6282.34 1474.83 m
103.56 0 158.06 -74.73 158.06 -181.4 c
0 -17.14 -1.56 -32.7 -3.9 -42.05 c
-242.91 0 p
7.79 -69.29 51.39 -108.22 112.89 -108.22 c
32.7 0 60.73 10.12 88.76 28.03 c
30.37 -56.07 p
-36.6 -24.13 -82.54 -41.25 -130.8 -41.25 c
-105.89 0 -188.42 73.96 -188.42 200.09 c
0 124.57 86.43 200.87 175.95 200.87 c
f
3157.41 2707.52 211.57 0 0 -759.89 371.31 0 0 -178.46 -582.88 0 f
3878.52 1769.16 211.57 938.352 re
f
4256.21 2707.52 587.2 0 0 -178.46 -375.63 0 0 -188.53 319.5 0 0 -177.02 ^
0 -215.88 390.02 0 0 -178.46 -601.59 0 f
4326.73 2981.3 224.51 0 116.58 -172.71 -168.38 0 f
4929.86 2232.57 m
0 77.72 12.23 147.03 36.7 207.97 c
24.47 60.92 57.57 112.48 99.31 154.72 c
41.73 42.2 90.67 74.33 146.79 96.41 c
56.14 22.06 115.86 33.11 179.19 33.11 c
66.2 0 123.52 -12.47 171.98 -37.42 c
48.44 -24.96 88.02 -53.26 118.74 -84.91 c
-116.58 -130.96 p
-23.02 22.06 -47.27 39.33 -72.68 51.8 c
-25.43 12.46 -58.28 18.71 -98.59 18.71 c
-36.47 0 -69.8 -6.97 -100.02 -20.87 c
-30.22 -13.92 -56.38 -33.81 -78.43 -59.72 c
-22.08 -25.91 -39.12 -57.57 -51.1 -94.99 c
-12.01 -37.41 -17.99 -79.65 -17.99 -126.64 c
0 -96.93 21.82 -171.99 65.48 -225.24 c
43.66 -53.25 109.61 -79.88 197.9 -79.88 c
19.18 0 37.89 2.39 56.13 7.21 c
18.21 4.78 33.1 11.98 44.61 21.58 c
0 161.19 -155.43 0 0 172.71 342.53 0 0 -431.76 p
-33.6 -31.67 -77.72 -58.54 -132.41 -80.6 c
-54.69 -22.05 -115.13 -33.1 -181.34 -33.1 c
-63.33 0 -122.58 10.32 -177.74 30.95 c
-55.19 20.62 -103.4 51.08 -144.64 91.39 c
-41.27 40.29 -73.65 90.41 -97.15 150.39 c
-23.52 59.95 -35.26 129.28 -35.26 207.95 c
f
5836.64 2707.52 587.19 0 0 -178.46 -375.63 0 0 -188.53 319.5 0 0 -177.02 ^
0 -215.88 390.02 0 0 -178.46 -601.58 0 f
4015.34 1573.24 m
0 30.35 23.35 51.38 55.28 51.38 c
31.92 0 55.28 -21.03 55.28 -51.38 c
0 -29.6 -23.36 -50.62 -55.28 -50.62 c
-31.93 0 -55.28 21.02 -55.28 50.62 c
f
5623.73 1573.24 m
0 30.35 23.35 51.38 55.28 51.38 c
31.92 0 55.27 -21.03 55.27 -51.38 c
0 -29.6 -23.35 -50.62 -55.27 -50.62 c
-31.93 0 -55.28 21.02 -55.28 50.62 c
f
6291.69 1510.94 -66.18 0 69.3 113.67 89.53 0 f
cleartomark end end pagesave restore
showpage
%%PageTrailer
%%Trailer
%%Pages: 1
%%EOF

Peter Flynn

unread,
Jan 26, 2021, 5:33:34 PM1/26/21
to
On 26/01/2021 20:39, 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?

I think you need to remove the showpage command at the end. I seem to
remember that hat's what makes it display in a stand-alone viewer, and
it shouldn't be in an EPS file. But my memoery isn't what it was, and
nor's my Postscript :-)

Peter

ken

unread,
Jan 27, 2021, 2:58:33 AM1/27/21
to
In article <rupulf$11ao$1...@gioia.aioe.org>,
hel...@asclothestro.multivax.de says...

> Is it not encapsulated PostScript?

No, it is not. It isn't an EPS file it's a straight-forward PostScript
program.


> If that is the problem, can
> ghostscript create such a file from a PDF file.

The version of Ghostscript you are using (9.02), no. There are any
number of problems with what you are doing there, not least the poor
quality of output of the pswrite device. Also (as Peter Flynn point out)
the program includes a showpage which is not legal in an EPS program
(which this isn't) and causes the page to be flushed leading to your
problem.

My advice would be to upgrade to a recent version of Ghostscript (9.02
is fast approaching it's 10th birthday) and use the eps2write device to
create an EPS file from the PDF instead of the (deprecated and now
removed) pswrite device.

That will produce a better quality PostScript output, and it will be an
EPS file.


Ken

Phillip Helbig (undress to reply)

unread,
Jan 27, 2021, 3:53:24 AM1/27/21
to
In article <MPG.3a7b2d848...@usenet.plus.net>, ken
I definitely plan to upgrade, probably before summer, but unfortunately
don't have the time now.

If someone can email me (how to remove the spam block should be
obvious), I can send you a PDF file and you can send me a PostScript
file back.

I admit that I don't fully understand when showpage is needed and when
not. Certainly \includegraphics does display some PostScript files with
the showpage command.

Or is there some online converter which would do what I want?

ken

unread,
Jan 27, 2021, 12:12:11 PM1/27/21
to
In article <rur9m2$jlb$1...@gioia.aioe.org>,
hel...@asclothestro.multivax.de says...

> I admit that I don't fully understand when showpage is needed and when
> not. Certainly \includegraphics does display some PostScript files with
> the showpage command.

showpage 'shows' the page, transfers the accumulated marking operations
to the output device and erases the canvas ready for the next page.

It is possible in PostScript to define a 'showpage' procedure (and any
other operator) which will be used instead of the built-in operator, if
the lookup is managed properly.

/showpage {} bind def

defines a function called showpage in the current dictionary which does
nothing. As long as this dictionary is ahead of systemdict on the
dictionary stack, then that's the definition of showpage which will be
used. It's not an uncommon approach.

In your case, simply remove the line with 'showpage' in it from the
output PostScript file. It will still be a crappy level 1 PostScript
program, but it at least won't reset the page for you.

Provided you are placing it within another PostScript program (which is
what EPS files are for) then the enclosing program's showpage will show
the accumulated operations.

Ken

Jeffrey H. Coffield

unread,
Jan 27, 2021, 2:53:14 PM1/27/21
to


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

Scott Pakin

unread,
Jan 28, 2021, 4:07:35 PM1/28/21
to
On 1/27/21 1:53 AM, Phillip Helbig (undress to reply) wrote:
> I definitely plan to upgrade, probably before summer, but unfortunately
> don't have the time now.
>
> If someone can email me (how to remove the spam block should be
> obvious), I can send you a PDF file and you can send me a PostScript
> file back.

Just to show off, here's a version of your file as run through my
purifyeps script (https://www.ctan.org/tex-archive/support/purifyeps).
This image can be included by both latex+dvips *and* pdflatex. (See
purifyeps.pdf for the magic incantation needed to convince pdflatex that
it can load an EPS file.)

-- Scott

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 81 54 645 299
%%HiResBoundingBox: 81.2461 54.1523 644.039 298.129
%%Creator: MetaPost 2.00
%%CreationDate: 2021.01.28:1347
%%Pages: 1
%%BeginProlog
%%EndProlog
%%Page: 1 1
0.98431 0.66667 0.09412 setrgbcolor
newpath 128.148 189.539 moveto
81.2461 162.461 lineto
81.2461 216.613 lineto
closepath fill
1 0.81177 0 setrgbcolor
newpath 81.2461 162.461 moveto
128.148 189.539 lineto
128.148 135.383 lineto
closepath fill
0.96078 0.51373 0.27058 setrgbcolor
newpath 128.148 135.383 moveto
81.2461 108.30899 lineto
81.2461 162.461 lineto
closepath fill
0.93726 0.22745 0.23529 setrgbcolor
newpath 81.2461 108.30899 moveto
128.148 135.383 lineto
128.148 81.2305 lineto
closepath fill
0.74118 0.72942 0.68236 setrgbcolor
newpath 128.148 243.691 moveto
81.2461 216.613 lineto
81.2461 270.76999 lineto
closepath fill
0.49803 0.50197 0.47058 setrgbcolor
newpath 81.2461 216.613 moveto
128.148 243.691 lineto
128.148 189.539 lineto
closepath fill
0.68236 0.79608 0.49413 setrgbcolor
newpath 175.047 216.613 moveto
128.148 243.691 lineto
128.148 189.539 lineto
closepath fill
0.46666 0.75687 0.26274 setrgbcolor
newpath 128.148 189.539 moveto
175.047 162.461 lineto
175.047 216.613 lineto
closepath fill
0.1647 0.64314 0.28627 setrgbcolor
newpath 175.047 162.461 moveto
128.148 189.539 lineto
128.148 135.383 lineto
closepath fill
0 0.55295 0.27843 setrgbcolor
newpath 128.148 135.383 moveto
175.047 108.30899 lineto
175.047 162.461 lineto
closepath fill
0 0.4 0.70197 setrgbcolor
newpath 128.148 81.2305 moveto
175.047 54.1523 lineto
175.047 108.30899 lineto
closepath fill
0.05882 0.74902 0.86275 setrgbcolor
newpath 175.047 108.30899 moveto
128.148 135.383 lineto
128.148 81.2305 lineto
closepath fill
0.62746 0.3647 0.65099 setrgbcolor
newpath 175.047 108.30899 moveto
221.945 81.2305 lineto
221.945 135.383 lineto
closepath fill
0.35686 0.17255 0.53334 setrgbcolor
newpath 221.945 81.2305 moveto
175.047 108.30899 lineto
175.047 54.1523 lineto
closepath fill
0 0.46274 0.50981 setrgbcolor
newpath 268.844 216.613 moveto
221.945 189.539 lineto
221.945 243.691 lineto
closepath fill
0.35686 0.64314 0.68236 setrgbcolor
newpath 221.945 243.691 moveto
268.844 270.76999 lineto
268.844 216.613 lineto
closepath fill
0.3451 0.36862 0.66667 setrgbcolor
newpath 268.844 108.30899 moveto
221.945 81.2305 lineto
221.945 135.383 lineto
closepath fill
0.50197 0.62746 0.82745 setrgbcolor
newpath 221.945 135.383 moveto
268.844 162.461 lineto
268.844 108.30899 lineto
closepath fill
0 0.46274 0.50981 setrgbcolor
newpath 315.742 146.551 moveto
324.695 146.551 lineto
324.695 123.738 lineto
324.695 117.43 326.48401 115.09401 330.613 115.09401 curveto
333.961 115.09401 336.219 116.652 339.09799 120.387 curveto
339.09799 146.551 lineto
348.051 146.551 lineto
348.051 108.32 lineto
340.73401 108.32 lineto
340.031 113.92601 lineto
339.801 113.92601 lineto
336.449 109.957 332.715 107.387 327.496 107.387 curveto
319.324 107.387 315.742 112.914 315.742 122.56601 curveto
closepath fill
newpath 358.406 146.551 moveto
365.801 146.551 lineto
366.426 141.41 lineto
366.73401 141.41 lineto
370.16 144.758 374.055 147.484 379.26999 147.484 curveto
387.445 147.484 391.02701 141.953 391.02701 132.301 curveto
391.02701 108.32 lineto
382.074 108.32 lineto
382.074 131.133 lineto
382.074 137.438 380.281 139.773 376.078 139.773 curveto
372.73001 139.773 370.551 138.141 367.35901 135.027 curveto
367.35901 108.32 lineto
358.406 108.32 lineto
closepath fill
newpath 402.547 108.32 moveto
411.5 108.32 lineto
411.5 146.547 lineto
402.547 146.547 lineto
closepath fill
newpath 418.19101 146.551 moveto
427.305 146.551 lineto
433.375 126.695 lineto
434.387 122.957 435.555 119.06601 436.56601 115.172 curveto
436.879 115.172 lineto
437.969 119.06601 439.05899 122.957 440.14801 126.695 curveto
446.22299 146.551 lineto
454.863 146.551 lineto
441.863 108.32 lineto
431.508 108.32 lineto
closepath fill
newpath 475.18 147.484 moveto
485.535 147.484 490.98401 140.012 490.98401 129.344 curveto
490.98401 127.629 490.828 126.07399 490.59799 125.137 curveto
466.305 125.137 lineto
466.22699 130.82 lineto
483.199 130.82 lineto
483.199 136.895 480.633 140.555 475.414 140.555 curveto
470.89801 140.555 467.008 137.207 466.22699 130.82 curveto
466.305 125.137 lineto
467.086 118.211 471.445 114.31601 477.594 114.31601 curveto
480.863 114.31601 483.668 115.328 486.469 117.117 curveto
489.508 111.512 lineto
485.84799 109.098 481.254 107.387 476.426 107.387 curveto
465.84 107.387 457.586 114.78099 457.586 127.395 curveto
457.586 139.852 466.22699 147.484 475.18 147.484 curveto
closepath fill
newpath 500.324 146.551 moveto
507.72299 146.551 lineto
508.344 139.773 lineto
508.656 139.773 lineto
511.383 144.758 515.43 147.484 519.47699 147.484 curveto
521.42603 147.484 522.672 147.25 523.84003 146.703 curveto
522.281 138.918 lineto
520.95697 139.309 519.945 139.539 518.30902 139.539 curveto
515.27301 139.539 511.613 137.438 509.281 131.68 curveto
509.281 108.32 lineto
500.324 108.32 lineto
closepath fill
newpath 529.36298 118.44101 moveto
532.789 115.797 536.05902 114.16 539.953 114.16 curveto
544.078 114.16 546.02301 116.105 546.02301 118.754 curveto
546.02301 121.945 541.89801 123.348 537.85199 124.902 curveto
532.789 126.77301 527.10498 129.652 527.10498 136.039 curveto
527.10498 142.734 532.47699 147.484 541.04303 147.484 curveto
546.336 147.484 550.617 145.305 553.72998 142.891 curveto
549.60498 137.438 lineto
546.95697 139.387 544.23401 140.711 541.195 140.711 curveto
537.383 140.711 535.594 138.922 535.594 136.504 curveto
535.594 133.547 539.406 132.301 543.531 130.82 curveto
548.75 128.875 554.51202 126.383 554.51202 119.223 curveto
554.51202 112.68 549.29303 107.387 539.64099 107.387 curveto
534.42603 107.387 528.89502 109.645 525.15997 112.68 curveto
closepath fill
newpath 563.38702 108.32 moveto
572.34003 108.32 lineto
572.34003 146.547 lineto
563.38702 146.547 lineto
closepath fill
newpath 586.117 139.465 moveto
580.66803 139.465 lineto
580.66803 146.16 lineto
586.586 146.551 lineto
587.67603 156.98 lineto
595.14801 156.98 lineto
595.14801 146.551 lineto
604.87903 146.551 lineto
604.87903 139.465 lineto
595.14801 139.465 lineto
595.14801 121.242 lineto
595.14801 116.73 596.85901 114.55101 600.52002 114.55101 curveto
601.844 114.55101 603.40198 114.938 604.492 115.40599 curveto
606.047 108.785 lineto
603.945 108.086 601.30103 107.387 598.26202 107.387 curveto
589.38702 107.387 586.117 112.992 586.117 121.242 curveto
closepath fill
newpath 628.23401 147.484 moveto
638.59003 147.484 644.039 140.012 644.039 129.344 curveto
644.039 127.629 643.883 126.07399 643.64801 125.137 curveto
619.35901 125.137 lineto
619.281 130.82 lineto
636.25403 130.82 lineto
636.25403 136.895 633.68402 140.555 628.469 140.555 curveto
623.953 140.555 620.05902 137.207 619.281 130.82 curveto
619.35901 125.137 lineto
620.13702 118.211 624.49597 114.31601 630.64801 114.31601 curveto
633.91803 114.31601 636.72302 115.328 639.52301 117.117 curveto
642.56299 111.512 lineto
638.90198 109.098 634.30902 107.387 629.47998 107.387 curveto
618.89099 107.387 610.64099 114.78099 610.64099 127.395 curveto
610.64099 139.852 619.281 147.484 628.23401 147.484 curveto
closepath fill
newpath 315.742 270.754 moveto
336.89801 270.754 lineto
336.89801 194.762 lineto
374.02701 194.762 lineto
374.02701 176.918 lineto
315.742 176.918 lineto
closepath fill
newpath 387.85199 176.914 moveto
409.008 176.914 lineto
409.008 270.75 lineto
387.85199 270.75 lineto
closepath fill
newpath 425.621 270.754 moveto
484.34 270.754 lineto
484.34 252.906 lineto
446.77701 252.906 lineto
446.77701 234.055 lineto
478.72699 234.055 lineto
478.72699 216.352 lineto
446.77701 216.352 lineto
446.77701 194.762 lineto
485.781 194.762 lineto
485.781 176.918 lineto
425.621 176.918 lineto
closepath fill
newpath 432.672 298.129 moveto
455.125 298.129 lineto
466.781 280.85901 lineto
449.945 280.85901 lineto
closepath fill
newpath 492.98401 223.258 moveto
492.98401 231.027 494.211 237.961 496.656 244.055 curveto
499.10199 250.145 502.414 255.301 506.586 259.52701 curveto
510.762 263.746 515.65198 266.961 521.26599 269.168 curveto
526.87903 271.371 532.85199 272.47699 539.18402 272.47699 curveto
545.805 272.47699 551.53497 271.23001 556.383 268.73401 curveto
561.22699 266.238 565.18402 263.41 568.258 260.246 curveto
556.59802 247.148 lineto
554.297 249.355 551.87097 251.082 549.33197 252.328 curveto
546.789 253.574 543.50403 254.199 539.47302 254.199 curveto
535.82397 254.199 532.492 253.504 529.469 252.113 curveto
526.44897 250.723 523.83197 248.73 521.62903 246.141 curveto
519.41803 243.551 517.71503 240.383 516.51599 236.641 curveto
515.31598 232.902 514.719 228.676 514.719 223.977 curveto
514.719 214.285 516.89801 206.777 521.26599 201.453 curveto
525.633 196.129 532.22699 193.465 541.055 193.465 curveto
542.97302 193.465 544.844 193.703 546.66803 194.188 curveto
548.48798 194.664 549.97998 195.387 551.12903 196.344 curveto
551.12903 212.465 lineto
535.586 212.465 lineto
535.586 229.734 lineto
569.84003 229.734 lineto
569.84003 186.559 lineto
566.47998 183.391 562.06598 180.703 556.59802 178.5 curveto
551.12903 176.293 545.086 175.188 538.46503 175.188 curveto
532.133 175.188 526.20697 176.223 520.69098 178.285 curveto
515.172 180.348 510.35199 183.391 506.22699 187.422 curveto
502.10199 191.453 498.863 196.465 496.512 202.461 curveto
494.16 208.457 492.98401 215.391 492.98401 223.258 curveto
closepath fill
newpath 583.664 270.754 moveto
642.383 270.754 lineto
642.383 252.906 lineto
604.82 252.906 lineto
604.82 234.055 lineto
636.77002 234.055 lineto
636.77002 216.352 lineto
604.82 216.352 lineto
604.82 194.762 lineto
643.82 194.762 lineto
643.82 176.918 lineto
583.664 176.918 lineto
closepath fill
newpath 401.535 157.324 moveto
401.535 160.359 403.867 162.461 407.06299 162.461 curveto
410.254 162.461 412.59 160.359 412.59 157.324 curveto
412.59 154.363 410.254 152.262 407.06299 152.262 curveto
403.867 152.262 401.535 154.363 401.535 157.324 curveto
closepath fill
newpath 562.37097 157.324 moveto
562.37097 160.359 564.70697 162.461 567.90198 162.461 curveto
571.094 162.461 573.43 160.359 573.43 157.324 curveto
573.43 154.363 571.094 152.262 567.90198 152.262 curveto
564.70697 152.262 562.37097 154.363 562.37097 157.324 curveto
closepath fill
newpath 629.16803 151.094 moveto
622.55103 151.094 lineto
629.47998 162.461 lineto
638.43402 162.461 lineto
closepath fill
showpage
%%EOF

Phillip Helbig (undress to reply)

unread,
Jan 29, 2021, 7:45:53 AM1/29/21
to
In article <63cd87bf-2f6f-e4b4...@pakin.org>, Scott Pakin <scot...@pakin.org> writes:
> On 1/27/21 1:53 AM, Phillip Helbig (undress to reply) wrote:
> > I definitely plan to upgrade, probably before summer, but unfortunately
> > don't have the time now.
> >
> > If someone can email me (how to remove the spam block should be
> > obvious), I can send you a PDF file and you can send me a PostScript
> > file back.
>
> Just to show off, here's a version of your file as run through my
> purifyeps script (https://www.ctan.org/tex-archive/support/purifyeps).
> This image can be included by both latex+dvips *and* pdflatex. (See
> purifyeps.pdf for the magic incantation needed to convince pdflatex that
> it can load an EPS file.)

Thanks. I ran my PDF file through an online converter, which allegedly
converts to EPS. After removing the showpage command, it works, but it
appears that the bounding box is incorrect. Maybe your version is
better; I'll check.

Dr Eberhard W Lisse

unread,
Jan 30, 2021, 9:15:51 AM1/30/21
to
If it was a PDF, whi not include the PDF in the first place?

el
On 2021-01-26 22:39 , Phillip Helbig (undress to reply) wrote:
[...]
> 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.
>
[...]

Phillip Helbig (undress to reply)

unread,
Jan 30, 2021, 3:28:32 PM1/30/21
to
In article <i7l80l...@mid.individual.net>, Dr Eberhard W Lisse
<nos...@lisse.NA> writes:

> If it was a PDF, whi not include the PDF in the first place?

Because there are many PostScript files to be included. So convert one
PDF to PostScript, or several PostScript to PDF.

Dr Eberhard W Lisse

unread,
Jan 31, 2021, 9:07:38 AM1/31/21
to
I still don't get it.

The file was generated from a PDF. So include that one as PDF

If there are many PS files which are generated from PDF include
many PDFs.

If there are PS generated from other means, include them as PS.

I handle 'many files' by way of a Makefile, which works on Linux and
the Mac (and I am sure on Windoze (and VMS :-)-O))

el
0 new messages