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 want to customize my table using the tabular environments, i write :

\begin{tabular}{|l|c|r|}
 \hline
 colonne 1 & colonne 2 & colonne 3 \\
 \hline
 1.1 & 1.2 & 1.3 \\
 \hline
 2.1 & 2.2 & 2.3 \\
 \hline
\end{tabular} 

i want to delete some line , something like the picture below enter image description here

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You can achieve what you want using a combination of \cline and \multicolumn as demonstrated below

enter image description here

\documentclass{article}

\begin{document}

\begin{tabular}{|l|c|r|}
 \cline{2-3}
 \multicolumn{1}{l|}{colonne 1} & colonne 2 & colonne 3 \\
 \hline
 1.1 & 1.2 & 1.3 \\
 \hline
 2.1 & 2.2 & 2.3 \\
 \hline
\end{tabular} 

\end{document}

As a side note, have a look at the booktabs documentation for reasons not to use vertical rules in table.

share|improve this answer
    
+1 with the stress on the booktabs package` –  tohecz Jul 9 '12 at 5:54

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.