scalebox

Denis Girou Denis.Girou at idris.fr
Thu Sep 3 20:09:20 CEST 1998


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

>>>>> "Bernd.Brandt" == Bernd Brandt <bernd at balaena.bio.vu.nl> writes:

    Bernd.Brandt> I have a question regarding \scalebox and PSTricks.

    Bernd.Brandt> ...

    Bernd.Brandt> I read it was best to first load pstricks, then graphics, as to overrule pstricks \scalebox command:

    Bernd.Brandt> \usepackage {pstricks, pst-node}
    Bernd.Brandt> \usepackage {graphics}

    Bernd.Brandt> However, this results in the following error on this pspicture:

    Bernd.Brandt> \begin{pspicture}(0,0)(2,2)\showgrid
    Bernd.Brandt> \psline[linewidth=1pt, linecolor=gray]
    Bernd.Brandt> 	{<->}(0.5,0)(0,1)(1,1.5)(1.5,1)(.5,.5)
    Bernd.Brandt> \end{pspicture}

    Bernd.Brandt> ! Undefined control sequence.
    Bernd.Brandt> \GenericError  ...                                
    Bernd.Brandt>   #4  \errhelp \@err@     ...
    Bernd.Brandt> l.124 ^^I{<->}
    Bernd.Brandt>               (0.5,0)(0,1)(1,1.5)(1.5,1)(.5,.5)

  Well, it is a strange case!

  Problem is here:

\psline[linewidth=1pt,linecolor=gray]
                                ^^^^

  When using the `graphics/graphicx' packages, there is an incompatibility
with PSTricks which doesn't allow to use the PSTricks color interface.
With `graphics' you must use also the `color' package if you use colors
(in any case it is always the best thing to do...) - of course you must load
`pstcol' to "truly" load `color' with PSTricks.

  I don't enough know the code of `graphics' to be able to give you the
technical explanation.

\documentclass{article}

% There is an incompatibility with the `graphics/graphicx' packages when using
% colors : use `pstcol' in place of `pstricks'
% \usepackage{pstricks,pst-node}

\usepackage{pstcol,pst-node}
\usepackage{graphics}

\pagestyle{empty}

\begin{document}

\psline[linecolor=gray](1,1)

\end{document}

  Thanks for the report!

  P.S. Bernd also tell me privately that concerning his other question of
triangles/diamonds/etc. nodes of the same size, the problem was analog to the
one with circle nodes, so that \makebox is also the solution (I like this kind 
of problems which disappear by themselves...)

D.G.

-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list