Graphics, Figures & TablesControl table width by \textwidth?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mike-klemin
Posts: 8
Joined: Fri Feb 18, 2011 9:50 pm

Control table width by \textwidth?

Post by mike-klemin »

Code: Select all

\usepackage{longtable}
\begin{longtable}{%
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}
|>{\centering}m{0.16\textwidth}|}
\hline 
1&%
2&%
3&%
4&%
5&%
6\tabularnewline
\hline 
\end{longtable}
0.16*6<1 so, I was assume it should fit the page width, but it just slighlty but very annoying - doesn't. How do I can define columns width to fit the page width ?

Edit: ahhhhh! I think there are added cols separation spaces, which are breaks my design!

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