TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently had to make a table that came out more or less like this:

Head 1 & Head 2\\
1 & \multicolumn{2}{|c|}{A}\\ \hline
2 & \multicolumn{2}{|c|}{B}\\ \hline
3 & \multicolumn{2}{|c|}{C}\\ \hline
4 & Da & Db \\ \hline
5 & \multicolumn{2}{|c|}{E}\\ \hline
6 & \multicolumn{2}{|c|}{F}\\ \hline

I was wondering whether it is possible to specify that the row starting with 4 has its second column subdivided instead of specifying that all the other rows have a cell that spans multiple columns.

share|improve this question
up vote 7 down vote accepted

Use a nested tabular:

Head 1 & Head 2\\
1 & A\\ \hline
2 & B\\ \hline
3 & C\\ \hline
4 & \begin{tabular}{@{}c|c@{}}Da & Db\end{tabular} \\ \hline
5 & E\\ \hline
6 & F\\ \hline

However you should consider avoiding vertical rules in your table; consult the documentation of the booktabs package.

share|improve this answer
Actually, I always use the booktabs package and never use vertical rules, but I copied this example from somewhere else as it illustrates my problem and my own tables were a bit too large to paste here. – nvcleemp Jun 26 '12 at 14:27
@nvcleemp The method with a nested tabular may need some fine tuning, depending on the cell that must be split. But it's quite general: for instance it's very handy also for spitting a cell vertically. – egreg Jun 26 '12 at 14:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.