# Defining page margins with \geometry for two-sided documents

How do you set page margins using \geometry for a two-sided document? So far I've used the twoside option in my documentclass, which automatically widens the left/right margin on opposite sides of odd and even pages.

Edit: My inquiry is not strictly practical, as I wish to know how to achieve the same results 'without' the twoside option.

-
LaTeX must know that you want a twoside document. How could it do otherwise? The fact is that oneside is the default option for article, like twoside is for book. –  egreg Jan 23 '12 at 21:35

Normally, one would simply use the left and right keys, because they are actually synonyms for inner and outer in twoside mode. (Alternatively, one could specify the textwidth and hmarginratio keys.) In case you want to disable the swapping of margins on alternate pages, add the asymmetric option.

\documentclass[twoside]{article}

\usepackage[top=2cm,bottom=4cm,left=1.5cm,right=3cm,asymmetric]{geometry}

\usepackage{lipsum}

\begin{document}

\lipsum[1-15]

\end{document}


EDIT: So far you've used the twoside option in your document class, but you want to do without this option? Well, use the twoside option of geometry instead.

-
In a practical sense, that would be perfect. But what if I were to use geometry without the twoside option? –  Ayman Elmasry Jan 23 '12 at 20:58
@AymanElmasry Please edit your question and specify what exactly you want to achieve. –  lockstep Jan 23 '12 at 21:01
It would be really useful if you explained why you want to avoid the twoside option, because its purpose is to typeset two-sided document and does its job correctly. –  tohecz Jan 23 '12 at 23:03