Merging cells
As suggested in the table design advice in the first recipe of this chapter, instead of duplicating identical values in adjacent cells, you can leave the other cells empty if it’s evident to the reader that the same values apply.
We can support the meaning by merging cells and centering the cell value over the new width or height.
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. This is often used for table headers that apply to several columns. So, in this recipe, we will combine header texts.
As modeling clay, we will take the differences between various LaTeX compilers. While the LaTeX format remains the same, the underlying TeX engine causes differences. We will arrange them now. Follow these steps:
- Specify the class; you could use the article class for now:
\documentclass{article}
- Load the array package, which...