[pstricks] wrong eps bounding box when using pstricks-add

Christoph Bersch usenet at bersch.net
Thu Jun 22 15:56:30 CEST 2006


Hi,

In the following document the bounding box of the resulting eps file is
too big, when I load the pstricks-add package (uncommenting this package
solves the problem, but in my real document I need pstricks-add...)

\listfiles
\documentclass{article}
\usepackage{pst-eps}
\usepackage{pstricks-add}
\usepackage{calc}
\newsavebox{\Imagebox}
\newlength{\imwd}
\newlength{\imht}

\begin{document}
\savebox{\Imagebox}{\rule{3cm}{3cm}}
\setlength{\imwd}{\wd\Imagebox-1\psxunit}
\setlength{\imht}{\ht\Imagebox-1\psyunit}
\begin{TeXtoEPS}
  \begin{pspicture}(-1,-1)(\imwd,\imht)
    \rput[lb](-1,-1){\usebox{\Imagebox}}
  \end{pspicture}
\end{TeXtoEPS}
\end{document}


The output from \listfiles is
 *File List*
 article.cls    2001/04/21 v1.4e Standard LaTeX document class
  size10.clo    2001/04/21 v1.4e Standard LaTeX file (size option)
 pst-eps.sty    1997/03/25 package wrapper for PSTricks pst-eps.tex
pstricks-add.sty    2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks.sty    2005/10/07 v0.25 LaTeX wrapper for `PSTricks' (RN,HV)
  xcolor.sty    2004/07/04 v2.00 LaTeX color extensions (UK)
   color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex    2006/06/17 v2.75 `PSTricks-add' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2005/11/25 v2.5e package option processing (HA)
 xkeyval.tex    2005/11/25 v2.5e key=value parser (HA)
pstricks-add.pro
    calc.sty    1998/07/07 v4.1b Infix arithmetic (KKT,FJ)
 ***********


Thanks for your help
Christoph



More information about the PSTricks mailing list