Dear all,
I am writing a term paper which requires a left hand margin of 4cm, unfortunately this means my table no longer fits on the page. Whilst it is off the page on the right hand side there is a large white space to the left of the table. Is it possible to change the margins for just one page? i.e. the page with my table and not the other pages.
Any help would be appreciated.
Graphics, Figures & Tables ⇒ Changing page margins on one page to fit a table.
Changing page margins on one page to fit a table.
Last edited by mcclairy on Sat Jan 15, 2011 6:52 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Changing page margins on one page to fit a table.
Try the \newgeometry and \restoregeometry commands from the geometry package. See its documentation for more info.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Changing page margins on one page to fit a table.
Extend the table into the page margins by using the \makebox command. (Of course it would be better to tweak the table so that it fits the page geometry.)
The blindtext package is only for creating dummy text thus not part of the solution.
Best regards and welcome to the board
Thorsten
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[%
font=small,
labelfont=bf,
tableposition=top
]{caption}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{table}[!ht]
\caption{Wide dummy table}\label{tab:wide}
\makebox[\textwidth]{%
\rule{1.2\textwidth}{5cm}
}
\end{table}
\blindtext
\end{document}
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Changing page margins on one page to fit a table.
Thank you very much for your help.
I used the geometry package and it worked perfectly. Code below for anyone else who has the same problem:
In the preamble:
\usepackage[width=12cm, left=4cm]{geometry}
Either side of my table:
\newgeometry{width=12cm, left=2cm}
\restoregeometry
I used the geometry package and it worked perfectly. Code below for anyone else who has the same problem:
In the preamble:
\usepackage[width=12cm, left=4cm]{geometry}
Either side of my table:
\newgeometry{width=12cm, left=2cm}
\restoregeometry