TransWikia.com

Creating a table such that there are arrows between columns

TeX - LaTeX Asked on August 2, 2021

I wish to create a table that looks something like this:

 A.       B.       C.       
  1. a -> b -> c

    d (diagonal up arrow going to b)

  2. e -> f -> f

My apologies for the poor formatting but this is what I have in mind. I wish to have distinct columns (with headers) and have each set of rows numbered similar to above. How would this be done?

One Answer

Here is a way with package listliketab and standard packages:

documentclass{article}
usepackage{array} 
usepackage{graphicx}
usepackage{amsmath}
usepackage{old-arrows}
usepackage{listliketab}

begin{document}

storestyleof{enumerate}
begin{listliketab}
newcounter{tabenum}
setcounter{tabenum}{0}
newcommand{tabitem}{stepcounter{tabenum}thetabenum. }
        begin{tabular}{Lc@{} >{$}c<{$}@{}c@{} >{$}c<{$}@{}c}
             & A. & & B. & & C. 
            tabitem & a&longrightarrow & b&longrightarrow & c 
             & d &smash[t]{rotatebox{45}{$xrightarrow{quadenspace}$}} 
            tabitem & e&longrightarrow & f &longrightarrow& g
        end{tabular}
end{listliketab}

end{document} 

enter image description here

Correct answer by Bernard on August 2, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP