Time for action – merging cells using the multirow package

Before we complement the font table, we would like to center the command type "Family" vertically, that is, span this cell over three columns. If we figured this out, we could use it later on:

  1. In our previous example, additionally load multirow:
    \usepackage{multirow}
  2. Replace the word «Family»:
      \multirow{3}{*}{Family} & textrm & rmfamily & \rmfamily & \\
  3. Typeset to see the small change:
    Time for action – merging cells using the multirow package

What just happened?

We used the command \multirow to span three rows. Its definition is:

\multirow{number of rows}{width}{entry text}

The entry will span that number of rows from the row on which \multirow has been ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.