Page LayoutHELP! How to get different margins within the document

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
LeCoqFou
Posts: 1
Joined: Tue Aug 11, 2009 10:08 am

HELP! How to get different margins within the document

Post by LeCoqFou »

Hello,
I'm a newbie to LYX and LATEX. I have the following problem:

I have defined the page margins in my document in the settings
top: 2cm
inner: 2cm
outer: 2cm
bottom 2.5cm

Now I need a part of the document (after page 8) the following
margins:

top:2cm
inner:6cm
outer:2cm
bottom:2.5cm

How can I do that. Please help me - it's urgent (deadline is tomorrow)

THX

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: HELP! How to get different margins within the document

Post by frabjous »

You could either try the gmeometric package, though that's not exactly failsafe ... or make two documents and merge them with pdfpages. Seach CTAN for the packages and documentation.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

HELP! How to get different margins within the document

Post by localghost »

The manuals for the packages mentioned by frabjous are also located on your local machine. Open a command prompt (or terminal) to get access.

Code: Select all

texdoc pdfpages

Best regards and welcome to the board
Thorsten
tiz
Posts: 8
Joined: Tue Aug 11, 2009 6:10 pm

Re: HELP! How to get different margins within the document

Post by tiz »

It doesn't work for everything but a very simple solution is to set up an environment with an indent

\newenvironment{myenvironment}{\leftskip=4cm \rightskip=0cm}

It may be a problem if you then try to use another environment inside that environment as I found they revert to the normal margins, but if you're not inserting any propositions or theories or anything like that you might get away with it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

HELP! How to get different margins within the document

Post by localghost »

tiz wrote:It doesn't work for everything but a very simple solution is to set up an environment with an indent [...] It may be a problem if you then try to use another environment inside that environment as I found they revert to the normal margins, but if you're not inserting any propositions or theories or anything like that you might get away with it.
This is a good idea and makes me suggest the narrow environment introduced in the epslatex document. This will work with page breaks since it internally is a list environment.
Post Reply