O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required