Graphics, Figures & Tablestabbing and tabular questions

Information and discussion about graphics, figures & tables in LaTeX documents.
itsmereally
Posts: 32
Joined: Sun Jul 25, 2010 11:15 pm

tabbing and tabular questions

Post by itsmereally »

gmedina wrote:

Code: Select all

Code, edit and compile here:
\documentclass{article}
\begin{document}
\begin{tabular}{llllll}
\cline{1-6} % hor. line from column 1 to 6 (same as an \hline)
column1a & column2a & column3a & column4a & column5a & column6a \\
\cline{1-1}\cline{3-5} % hor. lines: at column one and from column 3 to 5
column1b & column2b & column3b & column4b & column5b & column6b \\
\cline{2-4}\cline{6-6} % hor. lines: from column 2 to 4 and at column 6
column1c & column2c & column3c & column4c & column5c & column6c \\
\hline
\end{tabular}
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
\cline (and \hline) can only be used after the format declaration of the table and after the line change command \\.
That makes perfect sense now. I was putting the \cline command before the line change, and not getting anything different.

Thanks again. :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply