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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
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: 10335
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