O'Reilly logo

LaTeX Cookbook 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

Merging cells

As indicated in the table design advice of the last recipe, instead of repeating identical values in adjacent cells, you could leave the other cells empty if the reader would be able to understand that the same values apply.

We can support the meaning by merging cells and centering the cell value over the whole new width.

How to do it...

Merging and centering can be done horizontally, vertically, or both combined. We will start with the horizontal method, spanning cells over multiple columns. You can see this often, with table headers that apply to several columns. So, in this recipe, we will conflate header texts.

As modeling clay, we will take the differences between various LaTeX compilers. While LaTeX remains the same, the underlying ...

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