TransWikia.com

How to write multicolumn under another multicolumn

TeX - LaTeX Asked by Sanu on May 31, 2021

Is it possible to make multicolumn under another multicolumn?
Let under A we have B & C.
Now again under B, we have D & E. I try to write this. But how to include D& E?

begin{table*}[htp]
begin{tabular}{|ccc|}
hline
X & multicolumn{2}{c|}{A}
hline
  &  B&C
end{tabular}
end{table*}

One Answer

enter image description here

documentclass{article}
begin{document}
begin{table}[htp]
begin{tabular}{|cccc|}
hline
X & multicolumn{3}{c|}{A}    
hline
  & multicolumn{2}{c}{B} & C 
  & D & E                 &  
end{tabular}
end{table}
end{document}

Correct answer by leandriis on May 31, 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