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"?


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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