TransWikia.com

Multirow table help

TeX - LaTeX Asked by user11390769 on July 12, 2021

I am trying to build a table like this in Latex but I am new to this program and, even though I have read many blogs, I cannot understand how to build a table like this
Thank you in advance for your time

enter image description here

2 Answers

your question is for sure duplicate ... but now I'm to lazy to find the same question here ;-). So, an example of use of multirow package is:

enter image description here

documentclass{article}
usepackage{multirow}

begin{document}
begin{tabular}{|*{6}{l|} }
    hline
    &   & aaaa & bbbb & cccc & dddd 
    hline
multirow{3}{*}{LR}
    & 1 &   &   &   &     cline{2-6}
    & 2 &   &   &   &     cline{2-6}
    & 2 &   &   &   &   
    hline
multirow{3}{*}{SV}
    & 1 &   &   &   &     cline{2-6}
    & 2 &   &   &   &     cline{2-6}
    & 2 &   &   &   &   
    hline
end{tabular}
end{document}

Correct answer by Zarko on July 12, 2021

With {NiceTabular} of nicematrix, it's easy.

documentclass{article}
usepackage{nicematrix}

begin{document}
begin{NiceTabular}{*{6}{l}}[hvlines]
    &   & aaaa & bbbb & cccc & dddd 
Block{3-1}{LR}
    & 1 
    & 2 
    & 2 
Block{3-1}{SV}
    & 1 
    & 2 
    & 2 
end{NiceTabular}
end{document}

Output of the above code

Answered by F. Pantigny on July 12, 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