[Tugindia] Doubts on tables

E. Krishnan ekmath at md5.vsnl.net.in
Mon Apr 14 08:29:52 CEST 2003

On Sun, 13 Apr 2003, Vimal Joseph wrote:

> I have some doubts regarding
> creation of tables. I'll try to draw the table here.

In all your tables you have entries spanning multiple rows for which you 
have to use the "multirow" package. With this package loaded, the first 
two rows of Fig1. can be drawn as follows:



  	& \multicolumn{2}{c|}{D1} 
  	& \multicolumn{2}{c|}{D2} 
  	& \multicolumn{2}{c|}{D3}  
  	& Inv\\
  	& & 
  	& \multicolumn{1}{l|}{1} & & & 
  	& \multirow{2}{\flen}{10}\\
  	& & 1 & & 5 & & 10 & \\

The remaining rows are similar to the last row above. The second table is 
similar to the first.

To cretae  vertically running text you can use the package "rotating". 
With this loaded in the preamble, the first few rows of Fig3. can be done 


  	& \multicolumn{2}{|c|}{Horiz}\\
  	\multicolumn{2}{c|}{} & a & b\\
  	& c & d & e\\
  	& f & g & h\\

The fourth table is similar to this. 

Please read the fifth chapter of LaTeX Comapanion thoroughly, if you want 
to create complex tables.


More information about the Tugindia mailing list