\usepackage{pstricks}
\begin{pspicture}(0,0)(5,5)\showgrid
\rput(1,1){\rnode{A}{Web page}}
\rput(3,3){\rnode{B}{SAS data management}}
\ncline{->}{A}{B}
\nccurve[linestyle=dashed]{->}{B}{A}
\end{pspicture}
latex does not like \showgrid, \rnode, \ncline, \nccurve
Suggestions?
\showgrid is not part of pstricks (as it is here anyway)
you could probably use \psgrid
Paul Thompson wrote:
> I am using, or actually trying to use, pstricks to do some pictures. I
> have the pstricks set up I guess properly. However, when I run the
> following code, I get errors
>
> \usepackage{pstricks}
> \begin{pspicture}(0,0)(5,5)\showgrid
> \rput(1,1){\rnode{A}{Web page}}
> \rput(3,3){\rnode{B}{SAS data management}}
> \ncline{->}{A}{B}
> \nccurve[linestyle=dashed]{->}{B}{A}
> \end{pspicture}
>
> latex does not like \showgrid, \rnode, \ncline, \nccurve
>
> Suggestions?
I have actually gotten this to work. Problem IMHO lies in the Graphics
Companion. The LGC does not say that you must include some other .sty
files. I threw in several, and got it to work (pst-all, pst-poly,
multido), but I dunno at this point which is necessary and which is not.
Also, order is very important - putting pst-all after pstricks is not good
- all sorts of errors.
Thanks,
Harvey
hgre...@carbon.cudenver.edu http://www.cudenver.edu/~hgreenbe/
:) Degauss often.
On Wed, 1 Mar 2000, Paul Thompson wrote:
> Date: Wed, 01 Mar 2000 12:35:06 -0600
> From: Paul Thompson <pa...@wubios.wustl.edu>
> Newsgroups: comp.text.tex
> Subject: pstricks problem
David Wilson
> latex does not like \showgrid, \rnode, \ncline, \nccurve
\showgrid is a nonstandard command defined for the examples in _The_LaTeX_
_Graphics_Companion_, I believe.
%% Define `\showgrid', useful in `pspicture' environments. This is taken from
%% _The_LaTeX_Graphics_Companion_ by Goossens et al., page 142.
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt}
Eric.
--
-------------------------------------------------------------------------------
Eric Eide <ee...@cs.utah.edu> . University of Utah Dept. of Computer Science
http://www.cs.utah.edu/~eeide . +1 (801) 585-5512 voice, +1 (801) 581-5843 FAX
Paul.Thompson> I am using, or actually trying to use, pstricks to do some pictures. I
Paul.Thompson> have the pstricks set up I guess properly. However, when I run the
Paul.Thompson> following code, I get errors
Paul.Thompson> \usepackage{pstricks}
Paul.Thompson> \begin{pspicture}(0,0)(5,5)\showgrid
Paul.Thompson> \rput(1,1){\rnode{A}{Web page}}
Paul.Thompson> \rput(3,3){\rnode{B}{SAS data management}}
Paul.Thompson> \ncline{->}{A}{B}
Paul.Thompson> \nccurve[linestyle=dashed]{->}{B}{A}
Paul.Thompson> \end{pspicture}
Paul.Thompson> latex does not like \showgrid, \rnode, \ncline, \nccurve
As said by other people and as explained in the manual Chapter VI,
the \rnode, \ncline and \nccurve are parts of the `pst-node' package.
So, you must use "\usepackage{pst-node}".
As also previously answered, the \showgrid macro is not part of PSTricks and
is a convenient tool use in all the PSTricks chapter of LGC. It is defined
page 142 of the book and in CTAN/info/lgc/showgrid.tex (the directory of the
sources of all the examples of LGC) as:
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt}
P.S. * Don't mix the loading of `pstricks' and the one of `pst-all',
which can't work, as you verify. `pst-all' load all the PSTricks files
plus the `color' package and a compatibility interface between `color'
and PSTricks - `pstricks' has itself incompatibilities with `color',
which required to load the `pstcol' package in place of the `pstricks'
one, which is done by `pst-all'.
* For the kind of diagrams you want to do, as described in your example,
look at the "psmatrix" environment and at the examples of it usage. It is
more convenient and powerful for this kind of diagrams where the basic objects
could be put on a structured grid.
Denis Girou
--
--------------------------------------------------------------------------
Institut du Développement et des Ressources en Informatique Scientifique |
Centre National de la Recherche Scientifique |
Bâtiment 506 - B.P. 167 - 91403 Orsay Cedex - France |
--------------------------------------------------------------------------