[pstricks] auto-pst-pdf fails to produce the output

Luis Sequeira lfsequeira at gmail.com
Fri Feb 7 20:43:36 CET 2014


> Dear folks,
> 
> I noticed the following code just produces 2 blank pages when compiled with pdflatex (with shell-escape enabled).
> What is wrong?
> 
> \documentclass{article}
> \usepackage{auto-pst-pdf}
> \usepackage{pst-node}
> \psset{colsep=1cm,rowsep=2cm,mnode=C,fillstyle=solid,fillcolor=blue,linecolor=blue!40}
> \begin{document}
> \begin{psmatrix}
> &[]&&[]&&[]\\ []&&[]&[]&&[]
> \end{psmatrix}
> \psset{linecolor=.}\ncline{1,2}{2,1}\ncline{1,2}{2,3}\ncline{2,1}{2,3}\ncline{1,4}{1,6}\ncline{2,4}{2,6}\ncline{1,4}{2,4}\ncline{1,6}{2,6}
> \end{document}
> 
> 
> Thank you in advance.
> 
> Best regards,

The problem, as I see it, is that all commands you use produce zero sized boxes. Then when auto-pst-pdf is run, all bounding boxes end up as 0 0 0 0.
If you look at the log file, you may find warnings to that effect/

The following modification produces the picture under pdflatex. Note that I added a pspicture environment in order to generate a nonzero box.

Luis Sequeira



\documentclass{article}
\usepackage{auto-pst-pdf}
\usepackage{pst-node}

\psset{colsep=1cm,rowsep=2cm,mnode=C,fillstyle=solid,fillcolor=blue,linecolor=blue!40}

\begin{document}

\begin{pspicture}(0,0)(10,5)
\begin{psmatrix}
&[]&&[]&&[]\\ []&&[]&[]&&[]
\end{psmatrix}
\psset{linecolor=.}\ncline{1,2}{2,1}\ncline{1,2}{2,3}\ncline{2,1}{2,3}\ncline{1,4}{1,6}\ncline{2,4}{2,6}\ncline{1,4}{2,4}\ncline{1,6}{2,6}
\end{pspicture}

\end{document}








More information about the PSTricks mailing list