I am new to Tex and using below code to create a long table. I am creating a book using this where each verse's words are explained in the table format shown below. my document has large number of such tables.
\begin{longtable}{p{1.5cm}p{0.05cm}p{3.5cm}|p{1.5cm}p{0.05cm}p{3.5cm}|p{1.5cm}p{0.05cm}p{3.5cm}}
\end{longtable}
I was wondering if there is a way to shorten it with 1.5cm & 3.5 cm being variables and 0.05 cm as constant cells. This is just a flexibility for later editing. I tried to write something like this.
\newcommand{\ltb}[6]{\begin{longtable}{p{#1cm}p{0.05cm}p{{#2}cm}|p{{#3}cm}p{0.05cm}p{{#4}cm}|p{{#5}cm}p{0.05cm}p{{#6}cm}}}
but could not get any success. I was not sure what I was doing either, just a try.
I am attaching a screenshot of how the table looks like.
thanks for your help


=sign? – Alan Munn Aug 20 '11 at 22:54