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

The code


  \multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & \multicolumn{5}{c}{Bits per
    channel} \\


  & & 1 & 2 & 4 & 8 & 16 \\




Results in the table

enter image description here

How may I fix this code so that a vertical line is also added after "Bits per channel"?

share|improve this question
up vote 6 down vote accepted

The reason is as simple as the notation of the column is overwritten by \multicolumn{5}{c}. Try instead: \multicolumn{5}{c|}{Bits per channel}.

share|improve this answer

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.