Take the 2-minute tour ×
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.

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

\begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|}
\caption{some text }
\label{tab:artificialShapes}
\\\hline
\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}} \\
\hline
& & & & $J_{b}$ & $J_{a}$ & time[s] & $\rho$  & $J_{b}$ & $J_{a}$ & time[s] & $\rho$ \\ \hline

\end{longtable}

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
2  
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
add comment

1 Answer

up vote 7 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
add comment

Your Answer

 
discard

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.