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!
geometryis a very mature, de-facto standard package. If you usefancyhdr, load it aftergeometry-- see http://tex.stackexchange.com/questions/33874/geometry-fancyhdr-fancyfootc-thepage-is-not-really-centered – lockstep Aug 01 '12 at 09:35fancyhdr, plus there's a (unknown to me)\truncatemacro. I edited my MWE (which works for me). – lockstep Aug 01 '12 at 09:40includehead=falsemeans that the header is not included when calculating thetextheight. As you specifytextheightabsolute (as a multiple of\baselineskip), the remaining difference is about vertically aligning the text block on the page. – lockstep Aug 01 '12 at 09:50