Graphics, Figures & Tableschange top and bottom margin

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

change top and bottom margin

Post by manojg »

Hello,

I want to change the top and bottom margin of a particular page. I can change the left and right margin by using

Code: Select all

\advance\leftskip-2cm
\advance\rightskip-2cm
But this does not work for top and bottom margin. Actually, I want to fit two tables in one page by reducing the top and bottom margin. These two tables are little bit larger than a single page.

Any suggestion will be helpful.

Thanks,

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

change top and bottom margin

Post by Stefan Kottwitz »

I would always use the geometry package to change margins instead of low-level commands.

For this case, it provides the commands \newgeometry and \restoregeometry, which are explained in the geometry manual.

Stefan
LaTeX.org admin
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

change top and bottom margin

Post by manojg »

Hi Stefan,

Thanks for quick reply. I tried but I got this error:

Code: Select all

Undefined control sequence.
l.51 	\newgeometry
                  {left=0cm,right=0cm,bottom=0.1cm}
geometry package is already included:

Code: Select all

\usepackage[hmargin=1cm]{geometry}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10350
Joined: Mon Mar 10, 2008 9:44 pm

change top and bottom margin

Post by Stefan Kottwitz »

Those commands were introduced with version 5 of the geometry package. I recommend to update your installed package version.

Stefan
LaTeX.org admin
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

Re: change top and bottom margin

Post by manojg »

Thank you very much Stefan.
Post Reply