Graphics, Figures & Tables ⇒ Changing page margins on one page to fit a table.
Changing page margins on one page to fit a table.
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.
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
Changing page margins on one page to fit a table.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Changing page margins on one page to fit a table.
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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Changing page margins on one page to fit a table.
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