[Tugindia] Overlaying picture environment on a table

E. Krishnan ekmath at md5.vsnl.net.in
Sun Mar 14 02:13:27 CET 2004


On Fri, 12 Mar 2004, Aditya Dushyant Trivedi wrote:

>  I have a figure which is basically a table (in tabular environment). 
>  I would like to draw a couple of arrows from say cell(2,2) to cell(6,8) 
> to show that they hold the same value.

Please look at the example below:

   \documentclass{article}
   \usepackage{pstricks,pst-node}

   \begin{document}
   
      \begin{center}
         \renewcommand{\arraystretch}{1.5}
         \begin{tabular}{|c|c|c|c|}
    	   \hline
           11 & 12 & 13 & 14\\
           \hline
           21 & \rnode{22}{22} & 23 & \rnode{24}{24}\\
           \hline
           31 & \rnode{32}{32} & 33 & 34\\
           \hline
           \rnode{41}{41} & 42 & 43 & 44\\
           \hline
         \end{tabular}
         \ncline[linestyle=dotted,%
                 dotsep=1pt]%
                {->}%
                {32}{24}
         \ncline[linestyle=dotted,%
                 dotsep=1pt]%
                {->}%
                {41}{22}
       \end{center}

   \end{document}


-- 
Krishnan





More information about the tugindia mailing list