[pstricks] Help with electron dots around atoms

rossi at york.cuny.edu rossi at york.cuny.edu
Sun Feb 13 00:35:13 CET 2005


Hello:

I am trying to place electron dots around an atom.  The atom will then be used
in xymtex to draw a large molecule.

Can some one help me to place the electrons around an atom in an unequivocal
way?

For the code below, numbers 1 and 2 are OK because the left side and right side
electrons are put around the atom separately. 

But number 3 is bad because the left and right electrons are placed at the same
time, and the origin is shifted.

Numbers 4, 5, and 6 are really bad.  

Is there a way to do this so the electrons are placed in an invariant manner?

The simple code is:

\documentclass[a4paper]{article}
                                                                                
                                                                                
                                   
\usepackage{pstcol}
\usepackage{pst-node}
\usepackage{pst-slpe}           % CTAN:graphics/pstricks/contrib/pst-slpe
                                                                                
                                                                                
                                   
\def\TwoDotsr{\psdots[dotsize=1pt, linecolor=black](0.05,0.15)(0.05,0.30)}
\def\TwoDotsl{\psdots[dotsize=1pt, linecolor=black](-0.05,0.15)(-0.05,0.30)}
\def\TwoDotsb{\psdots[dotsize=1pt, linecolor=black](-0.40,-0.05)(-0.300,-0.05)}
\def\TwoDotst{\psdots[dotsize=1pt, linecolor=black](-0.40,0.50)(-0.300,0.50)}
                                                                                
                                                                                
                                   
\begin{document}
                                                                                
                                                                                
                                   
{\LARGE
                                                                                
                                                                                
                                   
                                                                                
                                                                                
                                   
\begin{enumerate}                                                               
                                                                                
                                                     
\item O\TwoDotsr
                                                                                
                                                                                
                                   
\item \TwoDotsl O
                                                                                
                                                                                
                                   
\item O\TwoDotsl\TwoDotsr
                                                                                
                                                                                
                                   
\item O \TwoDotsb
                                                                                
                                                                                
                                   
\item O \TwoDotst
                                                                                
                                                                                
                                   
\item \TwoDotsb\TwoDotsl O \TwoDotsr\TwoDotst
\end{enumerate}
                                                                                
                                                                                
                                   
}
                                                                                
                                                                                
                                   
                                                                                
                                                                                
                                   
\end{document}

I really would appreciate your suggestions.

Kind regards,

Angelo




Scanned for Malware by York College/CUNY




More information about the PSTricks mailing list