[pstricks] pst-pdf and scalebox (Graphics exported with DIA)
Herbert Voss
LaTeX at zedat.fu-berlin.de
Thu Jun 2 16:43:07 CEST 2005
Jan Steffan wrote:
> I used the PSTricks export function of DIA http://www.gnome.org/projects/dia/
> to create a PSTricks figure. I'd like to use this in combination with pst-pdf.
>
> 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}
pst-pdf in general has _nothing_ to do with PSTricks.
It's evident that you need pstricks, when having PSTricks related
macros. And pstricks.sty also redifines the \scalbox macro
to avoid conficts with the one of graphicx.
Herbert
> %%%%%%%%%%%%%%%%%%%%%%%
>
> \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}
>
> ?
>
> Can I do something to fix this WITHOUT having to edit the DIA generated
> pictures?
> Jan
>
More information about the PSTricks
mailing list