[pstricks] Comparing Decimals
David Arnold
dwarnold45 at suddenlink.net
Sun Jun 14 21:38:33 CEST 2009
All,
Can I get some help with the code below?
I am trying to have a horizontal line come out of "Same Digit", make 1
90 turn and point straight up to the digit it is comparing. Don't want
the bends. Just move right, left turn, move straight up.
Thanks
David.
\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\begin{document}
\begin{center}
\begin{tabular}{p{1in}*6{@{}c@{}}p{1.5in}}
&5&.&2&3&4&6\\
&\rnode{A}{5}&.&\rnode{B}{2}&\rnode{C}{3}&\rnode{D}{5}&7\\
\rnode{AA}{\color{blue}{Same digit}}\\
\rnode{BB}{\color{blue}{Same digit}}\\
\rnode{CC}{\color{blue}{Same digit}}&&&&&&&\hfill\rnode{DD}{\color{red}
{Different digit}}
\ncdiag[linecolor=blue,angleA=0,angleB=270,lineAngle=0]{->}{AA}{A}
\ncdiag[linecolor=blue,angleA=0,angleB=270,lineAngle=0]{->}{BB}{B}
\ncdiag[linecolor=blue,angleA=0,angleB=270,lineAngle=0]{->}{CC}{C}
\ncdiag[linecolor=red,angleA=180,angleB=270,lineAngle=0]{->}{DD}{D}
\end{tabular}
\end{center}
\end{document}
More information about the PSTricks
mailing list