If I run this sample document
\documentclass{book}
\usepackage[a4paper,pass,verbose]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}
I get, in the log file and on the console, the relevant lengths:
* \textheight=550.0pt
* \topmargin=22.0pt
* \headheight=12.0pt
* \headsep=18.06749pt
Rounding \headsep
is irrelevant, so I'll use 18pt:
\documentclass{book}
\usepackage[a4paper,verbose]{geometry}
\geometry{
inner=4cm,outer=1cm,
top=\dimexpr1in+22pt+12pt+18pt,% standard offset+topmargin+headheight+headsep
headheight=12pt,
headsep=18pt,
textheight=550pt,
}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}
This prints
* \textheight=550.0pt
* \topmargin=22.0pt
* \headheight=12.0pt
* \headsep=18.0pt
which agrees with the standard setup.
With \documentclass[11pt,a4paper]{book}
(the twoside
and openright
options are on by default), the values obtained in the first step are
* \textheight=595.80026pt
* \topmargin=24.0pt
* \headheight=12.0pt
* \headsep=19.8738pt
so the change should be
\documentclass[11pt]{book}
\usepackage[a4paper,verbose]{geometry}
\geometry{
inner=4cm,outer=1cm,
top=\dimexpr 1in+24pt+12pt+19.8738pt,% standard offset+topmargin+headheight+headsep
headheight=12pt,
headsep=19.8738pt,
textheight=595.80026pt,
}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}
with this setup I get as output
* \textheight=595.80026pt
* \topmargin=24.0pt
* \headheight=12.0pt
* \headsep=19.8738pt
Note that, in any case, LaTeX just looks at the values of \topmargin
, \headheight
, \headsep
and \textheight
; the bottom margin is whatever remains.
This is the output I get for the first page with the new settings
and this is the output without loading geometry
a4wide
is one of the ‘mortal sins’ of LaTeX users described inl2tabu
. They advise to simply use the a4paper option, and if needed use
geometry. What happened to your bottom margin?bottom=3.1cm
in the options for geometry. Anyway, the default is the same for basic latex for all paper formats, and they're adapted to Letter paper, not A4 paper. As far as i knowa4wide
doesn't touch vertical margins. Another solution would be to specify margins values according to European standard layouts.