[Tex/LaTex] Page layout for two-sided document

double-sidedmargins

In the minimal example pasted below I would like to have:

  • left margin on even pages = 1.5cm
  • right margin on odd pages = 1.5cm

(understood as absolute values, not added to/substracted from default settings)

How do I have to set \oddsidemargin, \evensidemargin and/or \hoffset?


\documentclass[11pt, a4paper]{book}
\usepackage{lipsum}
\voffset=-1.5cm
\setlength{\textwidth}{16.5cm}
\setlength{\textheight}{45\baselineskip}
\setlength{\headheight}{\baselineskip}
\setlength{\textwidth}{16.5cm}
% hoffset, oddsidemargins, evensidemargins = ???
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}

\begin{document}
  \lipsum
\end{document}

EDIT: fancyhdr added!

Best Answer

Why not use the geometry package?

\documentclass[11pt,a4paper]{book}
\usepackage[
  textwidth=16.5cm,
  outer=1.5cm,
  textheight=45\baselineskip,
  headheight=\baselineskip,
  includehead=false,% Default
  heightrounded,
]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}
\usepackage{lipsum}
\begin{document}
\chapter{foo}
\section{foobar}
\lipsum[1-12]
\end{document}