[pstricks] nodes

Pedro Jorge Caridade caridade at qta.qui.uc.pt
Wed Jun 16 19:44:24 CEST 2004


Sorry :)
The goal is to connect the center of the second column with the center
of the third one.
Pedro


 

\documentclass[12pt]{article}
\usepackage{pst-all,pst-slpe}
\begin{document}


\definecolor{feB}{rgb}{0.35,0.14,0.00}
\definecolor{fbB}{rgb}{1.00,0.87,0.00}
\definecolor{feC}{rgb}{0.00,0.14,0.35}
\definecolor{fbC}{rgb}{0.00,0.87,1.00}
\definecolor{feA}{rgb}{0.35,0.00,0.14}
\definecolor{fbA}{rgb}{1.00,0.00,0.87}

\newcommand{\Oxygen}{\begin{pspicture}[][0.5](-0.75,-0.4)(0.75,0.4)%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](-0.35,0){0.4cm}%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.35,0){0.4cm}
\end{pspicture}}

\newcommand{\Oatom}{\begin{pspicture}[][0.5](-0.4,-0.4)(0.4,0.4)%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0,0){0.4cm}
\end{pspicture}}

\newcommand{\Ozone}{\mbox{\begin{pspicture}[][0.5](-0.75,-0.4)(0.75,1)%
\psgrid(-10,-0.5)(2,2)
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](-0.35,0){0.4cm}%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.35,0){0.4cm}%
\pscircle[fillstyle=ccslope,slopebegin=fbA,%
slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.0,0.6){0.4cm}
\end{pspicture}}}





\begin{psmatrix}[rowsep=10.0cm,colsep=3.0cm,nodealign=true,ref=c]
\Oxygen & \Oatom & \Ozone
\ncarc[arcangleA=60,arcangleB=50,nodesepA=0pt,linewidth=2pt]{->}{1,1}{1,2}
\ncarc[arcangleA=60,arcangleB=50,nodesepA=0pt,linewidth=2pt]{->}{1,2}{1,1}
\end{psmatrix}


\end{document}




On Wed, 2004-06-16 at 18:38, Herbert Voss wrote:
> Pedro Jorge Caridade wrote:
> > Thanks Herbert, but it didn't solve my problem (I think I did not myself
> > very clear). I have a newcommand with
> > 
> > \newcommand{\Ozone}{\mbox{\begin{pspicture}[][0.5](-0.75,-0.4)(0.75,1)%
> > \psgrid(-10,-0.5)(2,2)
> > \pscircle[fillstyle=ccslope,slopebegin=fbA,%
> > slopeend=feA,linestyle=none,slopecenter=0.5 0.5](-0.35,0){0.4cm}%
> > \pscircle[fillstyle=ccslope,slopebegin=fbA,%
> > slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.35,0){0.4cm}%
> > \pscircle[fillstyle=ccslope,slopebegin=fbA,%
> > slopeend=feA,linestyle=none,slopecenter=0.5 0.5](0.0,0.6){0.4cm}
> > \end{pspicture}}}
> > 
> > When I use a rnode, the 0pt nodepos is the limit of my \Ozone command.
> > What I would need, without choosing by hand the proper nodepos is the
> > center of my node to use in my psmatrix.
> 
> please give a _full_ working example, not only fragments.
> Otherwise it is very difficult to help.
> 
> Herbert
> 
> 
> -- 
> http://TeXnik.de/
> http://PSTricks.de/
> ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
> http://www.dante.de/faq/de-tex-faq/
> http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list