Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX book class: Twosided document with wrong margins

I am trying to write my thesis in latex... Cannot get the layout straight though :? I'm using the following document class:

\documentclass[11pt,a4paper,twoside,openright]{book} 

My problem is: on the odd numbered pages there is a big margin right, and a small margin left - it should be the other way round... (for binding & stuff) I am a little puzzled by this -- am I just to stupid to see the obvious? The odd page numbers appear on the 'right' page of a bound document, so there needs to be a larger gutter margin on the left for binding -- and vice versa. Right?

Why does LaTeX not behave like this?

Here is the full code to produce a small Tex file that shows my problem:

\documentclass[11pt,a4paper,twoside,openright]{book} \begin{document} \chapter{blah} Lorem ipsum ius et accumsan tractatos, aliquip deterruisset cu usu. Ea soleat eirmod nostrud eum, est ceteros similique ad, at mea tempor petentium. At decore neglegentur quo, ea ius doming dictas facilis, duo ut porro nostrum suavitate. \end{document} 

Edit: I know about a lot of ways to manually specify the page margins, like

\setlength{\oddsidemargin}{53pt}   

or ...

\usepackage[lmargin=1cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm]{geometry} 

I just wanted to use the default settings and don't understand why they do not behave as expected.

like image 743
fgysin Avatar asked Apr 02 '10 08:04

fgysin


People also ask

How do you reset margins in LaTeX?

Use the "geometry" package and write \newgeometry{left=3cm,bottom=0.1cm} where you want to change your margins. When you want to reset your margins, you write \restoregeometry .

Why are my margins so big in LaTeX?

LaTeX's margins are, by default, 1.5 inches wide on 12pt documents, 1.75 inches wide on 11pt documents, and 1.875 inches wide on 10pt documents. This is the standard for book margins. If you want to change them, you have several options: the "geometry" package, the "fullpage" package or changing the margins by hand.

How do you set different margins for odd and even pages in LaTeX?

LaTeX uses different margins on odd and even pages only if the twoside option is activated in the \documentclass line. would set the usual "oneside" textwidth. Choose the value for <XX>pt to suit your needs. Check the manual of geometry for other options, in particular for setting the text height.

What is Oddside margin in LaTeX?

The \oddsidemargin length is the extra distance between the left side of the page and the text's left margin, on odd-numbered pages when the document class option twoside is chosen and on all pages when oneside is in effect.


1 Answers

I had the same problem. Anyhow, here the "simple" solution (put it in your preamble):

\let\tmp\oddsidemargin \let\oddsidemargin\evensidemargin \let\evensidemargin\tmp \reversemarginpar 

Cheers, Chris

Edit: Contrary to the previous solutions, the provided code does not change the style of the document :)

like image 96
Chris Avatar answered Sep 23 '22 05:09

Chris