Background
If the following PSTricks diagram
% Circle.tex
\documentclass{article}
\usepackage{pstricks}
\pagestyle{empty}
\begin{document}
\pspicture(-1,-1)(1,1)
\rput(0,0){$E\not=mc^2$}
\pscircle*[linecolor=yellow,opacity=0.5]{1}
\endpspicture
\end{document}
is compiled with MethodA.bat below,
rem MethodA.bat takes an input file name without extension
latex %1
dvips -D10000 %1 -E -o %1-temp.eps
epstool --copy --bbox %1-temp.eps %1.eps
I got a huge EPS output to which the raw PSTricks libraries are attached.
In How to remove PSTricks dictionary or library codes in an EPS file produced by dvips?, I asked this issue and Herbert suggested me to reprocess the resulting EPS with GhostScript in advance. I have tried it with MethodB.bat instead of MethodA.bat as follows.
rem MethodB.bat takes an input file name without extension
latex %1
dvips -D10000 %1 -E -o %1-temp.eps
gswin32c -r10000 -dNOCACHE -dPDFSETTINGS=/prepress -dNOPAUSE -dBATCH -sDEVICE=epswrite -sOutputFile=%1.eps %1-temp.eps
Issue & Question
I import the resulting EPS image from within the following main input file,
% Main.tex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{Circle}
\end{document}
which is compiled with Batch.bat as follows,
rem Batch.bat takes an input file name without extension.
latex -interaction=nonstopmode %1
latex -interaction=nonstopmode %1
dvips -D10000 -t unknown %1
ps2pdf -r10000 -dCompatibilityLevel#1.5 -dAutoRotatePages#/None -dPDFSETTINGS#/prepress %1.ps
The EPS produced by MethodA.bat preserves the transparency but the one produced by MethodB.bat does not. Thus invoking GhostScript in MethodB.bat is the source of problem, GhostScript seems to be unable to work with transparency. How to fix it?
pst-barcodetakes 700kB. Unused packages should not be loaded as they will make bigger EPS files. – Display Name Jul 29 '11 at 20:36