I've noticed that the pstricks macro psGTriangle, to draw triangles with Gouraud shading does not work in combination with auto-pst-pdf/pdflatex. There is no error message, the pspicture environment is just ignored. Here is minimal example to illustrate the problem :
\documentclass{minimal}
\usepackage{pstricks,pstricks-add}
\usepackage{auto-pst-pdf}
\begin{document}
\psset{unit=0.5cm}
\begin{pspicture}[showgrid=true](-5,-5)(5,5)
\psGTriangle(-2,-2)(3,-1)(-0.5,3){red}{white}{blue}
\end{pspicture}
\begin{pspicture}[showgrid=true](-5,-5)(5,5)
\psline(-3,-2)(4,3)
\end{pspicture}
\end{document}
Compiling this example with latex -> dvips -> ps2pdf gives a pdf with both pspictures environment.
latex pdfmini.tex && dvips pdfmini.dvi && ps2pdf pdfmini.ps pdfmini_latex.pdf
Compiling the same example with pdflatex gives a pdf with 2 blank pages and the second pspicture environment on a third page.
pdflatex -shell-escape pdfmini.tex
Looking in the generated pdfmini-pics.pdf file, it is visible that something is wrong with the figure containing the psGTriangle, even if it is displayed. It seems that some how the crop did not work really fine .
During my research to solve this problem, it appeared that compiling with xelatex renders a good pdf file. However I use the psGTriangle macro in a bigger document, and i'd rather stay with pdflatex (since I'm really not familiar with the xelatex).
Is this problem known, solvable, or do I have to live with it ?
Thank you for your help.
Edit : @percusse: I'm using Ubuntu 12.04 with
texlive version 2012.20120611-3~ubuntu12.04.1.
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
XeTeX 3.1415926-2.4-0.9998 (TeX Live 2012/Debian)
[crop=off]
, see my answer