# [texhax] change margins for some pages in a doc

Viktor Ahlqvist viktor at datakaka.net
Fri Oct 12 11:12:21 CEST 2012

```The package "geometry" solves your problem.
In the preamble:
\usepackage[left=3cm,right=3cm,a4paper]{geometry} (change the values to the
correct margins, see the documentation for more options).

In the document, you can use \newgeometry{left=1cm,right=1cm,top=1cm} to
change the left,right and top margins to one cm.
Simply use the command \restoregeometry when you want to go back to the
orginal margins.

/Viktor

On Friday, 12 October 2012, Arno Gaboury wrote:

> Dear list,
>
> My document class is \documentclass[english,12pt]{scrartcl}
>
> I need to add on a few pages large .xls tables and wish them to fill
> more space, e.g dismish top,bottom,let and right margins. This should
> only be applicaple to some pages, not the whole doc.
>
> Best would be to have access to 1 and 2 in the usual page layout
> graphic.
> 1 one inch +\offset (left space)
> 2 one inch +\voffset (top space)
> but I have no idea how to change these values.
>
>
> Playing with scale \includegraphics[scale=1]{xl1.pdf} is not satisfying.
> \pagebreak \enlargethispage does nothing
> \renewcommand{textwidth}{npt} does nothing
>
> I do not understand very well the fancyhdr package. Maybe it is the
> solution?
>
> Thank you for help
>
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/