[pstricks] Comparing Decimals

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sun Jun 14 22:00:52 CEST 2009


David Arnold schrieb:

> 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.

> \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}

\ncangle[linecolor=blue,angleA=0,angleB=270,lineAngle=0]{->}{AA}{A}
\ncangle[linecolor=blue,angleA=0,angleB=270,lineAngle=0]{->}{BB}{B}
\ncangle[linecolor=blue,angleA=0,angleB=270,lineAngle=0]{->}{CC}{C}
\ncangle[linecolor=red,angleA=180,angleB=270,lineAngle=0]{->}{DD}{D}

Herbert



More information about the PSTricks mailing list