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

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

Post Reply