2

I wish to create something similar to the following table

enter image description here

where Ozeki and Yokozuna are categories. I, II, III, etc. are sub categories, and Azuma, Santoro, Kenzo are items in the first column. The cells are to be inputted either numerical values or strings.

I am quite familiar with how to create something like

enter image description here

but clueless as to how to add that first "grand" category. I don't even know what type of table I should use.

A minimal example should suffice. Outer border is not needed.

1
  • 1
    Take a look at the multicolumn command.
    – leandriis
    Apr 17, 2021 at 6:23

1 Answer 1

2

Indeed, as @leandriis suggests in a comment, \multicolumn will help you there. Here's a snippet that also uses the booktabs package to create a nice-looking table:

\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lccccccc}
\toprule
                     & \multicolumn{3}{c}{\textbf{Ozeki}} & \multicolumn{4}{c}{\textbf{Yokozuna}} \\
\cmidrule(lr){2-4}\cmidrule(lr){5-8}
                     & I & II &            III            & I & II & III &           IV           \\
\midrule
    \textbf{Azuma}   &   &    &                           &   &    &     &                        \\
    \textbf{Santoro} &   &    &                           &   &    &     &                        \\
    \textbf{Kenzo}   &   &    &                           &   &    &     &                        \\
\bottomrule
\end{tabular}
\end{document}

enter image description here

6
  • 1
    +1. Do please change "Yokuzuna" to "Yokozuna", though. :-)
    – Mico
    Apr 17, 2021 at 6:42
  • @Mico thanks for the upvote --- and I did wonder about that, but the OP had "Yokuzuna" as well, so I stuck with that!
    – chsk
    Apr 17, 2021 at 6:43
  • Well, just because the OP's text had a typo...
    – Mico
    Apr 17, 2021 at 6:43
  • 1
    ありがとうございました!!!!
    – Norman
    Apr 17, 2021 at 8:38
  • @Norman どういたしまして!
    – chsk
    Apr 17, 2021 at 9:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .