TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

Is there any way to force a break in the horizontal rule running across two adjacent cells of a table. To be more precise, here is what I'm looking for:

enter image description here

Notice how I wish the lines to fall short of the left and right borders of the table as well. I would really appreciate it if someone can provide a simple and compact solution.

This is the usual scenario for comparing against:

enter image description here

Here is the simple code for quick access:

\multirow{2}{*}{C1} & \multicolumn{2}{c}{C2} & \multicolumn{2}{c}{C3} \\ \cline{2-3} \cline{4-5}
                    & C21 & C22              & C31 & C32            \\ \hline
Val1                & Val2 & Val3            & Val4 & Val5 \\ 

share|improve this question
Please add a minimal working example. – Svend Tveskæg Apr 6 '13 at 6:12
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Apr 6 '13 at 6:48
@PeterGrill - Will keep that in mind from now on. Thank you very much – Chatterjee Apr 6 '13 at 6:56
up vote 4 down vote accepted

You could use the booktabs package:

enter image description here



\multirow{2}{*}{C1} & \multicolumn{2}{c}{C2} & \multicolumn{2}{c}{C3} \\ 
\cmidrule(lr){2-3} \cmidrule(lr){4-5}
                    & C21 & C22              & C31 & C32            \\ 
\cmidrule(lr){1-1} \cmidrule(lr){2-3} \cmidrule(lr){4-5}
Val1                & Val2 & Val3            & Val4 & Val5 \\ 

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.