Graphics, Figures & TablesChange Margins for table fitting

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gonzales81
Posts: 4
Joined: Wed Dec 24, 2008 1:09 pm

Change Margins for table fitting

Post by gonzales81 »

Hello everybody!

I have a wide table that doesn't fit the document margins, even if I use scriptsize font.
(I set margins=2.2cm in the preamble using the geometry package).
how can I change the margins just for the table?
I tried and create a custom environment using list for chaning the left margin.

Code: Select all

\newenvironment{newMargins}[1]%
   {\begin{list}{}%
     {\setlength\labelwidth{0pt}%
      \setlength\leftmargin{#1}}\item[]}%
   {\end{list}}
but it seems to work only with text, not with tables.
Plz help me!
Ty

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

Change Margins for table fitting

Post by Juanjo »

Instead of changing margins, you may try a solution like this one.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change Margins for table fitting

Post by localghost »

An alternative could be to use the narrow environment introduced in epslatex (Section 23 - Wide figures, p. 90).


Best regards
Thorsten¹
Post Reply