[pstricks] Comparing Decimals
John Culleton
john at wexfordpress.com
Sun Jun 14 21:56:22 CEST 2009
On Sunday 14 June 2009 03:38:33 pm David Arnold wrote:
> 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}
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
In plain TeX we would try something like \vrule height 1pt length
1em \vrule width 1 pt height \baselineskip. Don't know how to fit
it in your code but that's how I would make it.
--
John Culleton
Create Book Covers with Scribus/e-book $5.95
http://www.booklocker.com/books/4055.html
More information about the PSTricks
mailing list