[pstricks] pst-pdf and scalebox - same with ps4pdf

Jan Steffan me at jansteffan.de
Thu Jun 2 17:51:18 CEST 2005


using ps4pdf instead of pst-pdf causes the same error.

\documentclass{minimal}

\usepackage{ps4pdf}
\PSforPDF{\usepackage{pstricks}} 

\begin{document}
\PSforPDF{%
\pspicture(4,1)
\scalebox{4 1}{Test}
\endpspicture}
\end{document}

On Thursday 02 June 2005 15:11, Jan Steffan wrote:
> [...]
> DIA makes use of \scalebox in its PSTricks output which seems to cause
> problems with pst-pdf. I guess the reason for this is that pst-pdf loads
> the graphicx package which defines \scalebox itself.
>
> Here's a minimal example that works fine with \usepackage{pstricks} but
> fails with \uspackage{pst-pdf}
>
> %%%%%%%%%%%%%%%%%%%%%%%
>
> \documentclass{minimal}
>
> %\usepackage{pstricks}
> \usepackage{pst-pdf}
>
> \begin{document}
> \pspicture(4,1)
> \scalebox{4 1}{Test}
> \endpspicture
> \end{document}
>
> %%%%%%%%%%%%%%%%%%%%%5
>
> Running it through latex gives:
> [...]
> ! Illegal unit of measure (pt inserted).
> <to be read again>
>                    1
> l.9 \scalebox{4 1}{Test}


-- 
 gpg --keyserver subkeys.pgp.net --recv-keys DE34EFA1




More information about the PSTricks mailing list