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 was wondering if it is possible to draw line which goes through some columns in table(not all columns). I have a table which looks like that

\caption{some text }
\multirow{2}{*}{Shape} & \multirow{2}{*}{$C^{*}$} & \multirow{2}{*}{$C_{0}$} &\multirow{2}{*}{$N$} & \multicolumn{4}{|c|}{\textbf{Noisless data}} & \multicolumn{4}{|c|}{\textbf{Noisy data}} \\
& & & & $J_{b}$ & $J_{a}$ & time[s] & $\rho$  & $J_{b}$ & $J_{a}$ & time[s] & $\rho$ \\ \hline


The problem is that text which is placed in multirow command is crossed by line. Is it possible to prevent a line from going through all columns ?

share|improve this question
You might find the following question useful: LaTeX table capabilities and also Formatting table. It's generally not a good idea to have vertical lines in tables. – Alan Munn Jul 17 '11 at 14:23
up vote 11 down vote accepted

instead of the second \hline use \cline{5-12}

And by the way: you can write \begin{longtable}{|*{12}{c|}} for your tabular definition

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.