TransWikia.com

Table alignments. How to make a hline in the middle of a table

TeX - LaTeX Asked by TheGreatJRB on July 28, 2021

I was wondering how to create these tables in LaTeX. How to have the title adjusted to the left of the table. And how to color a hline and how to put it in the middle of a table. It almost seems like a table in a table

enter image description here

One Answer

enter image description here

documentclass{article}
usepackage{booktabs}
usepackage[table]{xcolor}
begin{document}
begin{tabular}{lcccc}
toprule
text & multicolumn{4}{c}{text}
arrayrulecolor{blue}cmidrule{2-5}arrayrulecolor{black}
text & 1 & 2 & 3 & 4 
bottomrule
end{tabular}
end{document}

Answered by leandriis on July 28, 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