General[solved] How to correctly fill all page with table

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dp_
Posts: 6
Joined: Sat Jun 07, 2008 8:14 pm

[solved] How to correctly fill all page with table

Post by dp_ »

Hello,

I want to make table that will fill all page, without margins and other unnecessary spaces.

Code: Select all

\begin{table}[ct]
	\renewcommand{\tabcolsep}{1.5cm}
	\renewcommand\arraystretch{11}
	\begin{tabular}{p{4cm}|p{4cm}|p{4cm}}
	label 1 & label 2 & label  \\
	\hline 
	item 1  & item 2  & item 3  \\
	\hline 
	item 1  & item 2  & item 3  \\
	\hline 
	item 1  & item 2  & item 3  \\
	\hline
	item 1  & item 2  & item 3  \\
	\hline 
	item 1  & item 2  & item 3  \\
	\hline
	\end{tabular}
	\end{table}
All code:

http://pastebin.com/m127ff3be

I made something like this, but there is some free space (some margins) at top on the page. How to remove it ?

I will be very grateful for any help with this problem.
Last edited by dp_ on Tue Nov 18, 2008 11:12 am, edited 1 time in total.

Recommended reading 2024:

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

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

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: How to correctly fill all page with table

Post by Juanjo »

Remove the table environment. You don't need it since your table will not float.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

[solved] How to correctly fill all page with table

Post by gmedina »

Hi,

Juanjo's suggestion will solve the problem. I just want to make explicit that after removing the table environment, you may need to use \noindent right before \begin{tabular} to prevent bad boxes and to obtain the desired results
1,1,2,3,5,8,13,21,34,55,89,144,233,...
dp_
Posts: 6
Joined: Sat Jun 07, 2008 8:14 pm

[solved] How to correctly fill all page with table

Post by dp_ »

Thanks guys for help. I'm very grateful, this was so annoying problem for me.

gmedina very big thanks for suggestion about /noindent . First time I didn't use it and was little confused about result :)
Post Reply