I am trying to create a graphic with pstricks and want to include a logo which has some white colored background. But I want this white background to be transparent.
I have tried to change the white background to transparency with gimp and save it as ps file but I think ps cannot deal with transparency. Unfortunately I cannot use png or pdf as far as I know, because I have to use latex -> dvips -> ps2pdf when using pstricks.
Hopefully somebody can help me.
\documentclass{standalone}
\usepackage{pstricks}
\usepackage{graphicx}
\begin{document}
\begin{pspicture}(0,0)(1,1)
\psframe[fillcolor=red, fillstyle=solid, linecolor=red](0,0)(1,1)
\rput[lb](0,0){\includegraphics[width=1cm]{logo.ps}}
\end{pspicture}
\end{document}
Since my background is not a simple red filled rectangle, it does not help me to color the white background of the logo in gimp (which would be the most simplest solution).
xelatexthis works for me however withpdflatexI have some problems. But you are right, I did assume that usingpstricksI cannot include apdfimage and this solves my problem. – Vanessa Mar 29 '17 at 11:16xelatexhas problems with transparency. However you can usepdflatextogether with the packageauto-pst-pdf– Mar 30 '17 at 08:51