General ⇒ problem with layout of tabular environment
problem with layout of tabular environment
The lines sticking out of the table for the first 2 columns are quite ugly... can you help me removing them ? here's the code:
\documentclass{article}
\begin{document}
\begin{table}[h]
\centering
\begin{tabular}{|c|ccc|p{3cm}p{2.5cm}|} \\ \hline
1 & Rc1/4 & customer & machine & spindle coolant water OUT & water drain \\
2 & Rc1/4 & customer & machine & spindle coolant water IN & \\
\end{tabular}
\end{table}
\end{document}
thanks,
marie.
- Attachments
-
- lines of tabular sticking out !?
- table.JPG (8.98 KiB) Viewed 2475 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: problem with layout of tabular environment
\begin{tabular}{|c|ccc|p{3cm}p{2.5cm}|} \hline
Now I have to say that the vertical lines shouldn't be used. See the doc of the booktabs package.
B.A.
- Attachments
-
- booktabs.pdf
- (189.24 KiB) Downloaded 233 times
Re: problem with layout of tabular environment
Thanks for the tip about the vertical lines sticking out of my tables. It's been a while since you posted it, but better now than never !
I had a look at booktabs.pdf, it looks quite interesting ! I'll try to use it. Although "never using vertical lines" sounds exagerate, maybe in an ideal typesetting world you don't need vertical lines, but they do help sometimes.
thanks
marie