I am trying to create a table similar to this one. (I took it from my college notes) Where there are separated boxes with vertical lines that do not span the whole table. I've managed to replicate the horizontal lines and the multirow/multicolumn behaviour but I don't know how to create those separations between tables.


  • 1
    Welcome to TeX.SE! By use of \hhline package. For complete answer with code for your table you first need to show us what you try so far ...
    – Zarko
    Nov 22, 2022 at 10:20

1 Answer 1


Thanks to Zarko's comment I was able to replicate that using \hhline package. Here you can find a pdf explaining how to use this package: Link to hhline documentation

I created this simple table to see how the package works:

    \cline{1-1}\cline{3-3} Fermiones (Spin 1/2) & & Carga eléctrica\\ \hhline{=-=}
    \multirow{6}{*}{Quarks} & u & \multirow{3}{*}{2/3}\\
    &c& \\
     &t& \\
    \cline{2-3}&d& \multirow{3}{*}{-1/3} \\
    &s& \\
    &b& \\ \hline

Which gives the following table:


You must log in to answer this question.

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