I want to define a page layout in geometry that has similar values as that defined by KOMA script. Unfortunately the values that I provide for geometry do not end up in the design as expected.
This is the code that I use
\documentclass{scrbook}
\usepackage{layouts}
%\KOMAoptions{%
% DIV=12,% (Size of Text Body, higher values = greater textbody)
% % DIV=calc % (also areaset/classic/current/default/last)
% % -> after setting of spacing necessary!
% BCOR=10mm% (binding correction)
%}%
%
%\KOMAoptions{% (most options are for package typearea)
% twoside=true, % two side layout (alternating margins, standard in books)
% twocolumn=false, % (true)
% %
% headinclude=false,%
% footinclude=false,%
% mpinclude=false,%
% headsepline=true,%
% footsepline=false,%
%}%
\usepackage{geometry}
\geometry{%
%%% Paper Groesse
a4paper,
portrait,
%%% Koerper Groesse
textwidth=430pt, % modifies \textwidth, the width of body
textheight=610pt, % modifies \textheight, the height of body
%ignoreall, % sets both ignoreheadfoot and ignoremp to true
heightrounded, % This option rounds \textheight to n-times (n: an integer) of \baselineskip
%%% Margin
inner=4pt,
outer=22pt,
twoside, % switches on twoside mode with left and right margins swapped on verso pages.
bindingoffset=10mm, % removes a specified space for binding
%%% Dimensionen
headheight=17pt, % Alias: head
twoside,
}
\begin{document}
\pagenumbering{alph}
\pagestyle{empty}
\currentpage
\pagediagram
\pagevalues
\end{document}
For the KOMA script values (geometry commented out) this gives me
but for geometry, where I try to define exactly these values especially
the margins (even, odd) end up completely different, but also the whole text area is positioned different. I do not expect to have a layout that achieves exactly the same
page content, but it should be close.
How do I need to modify the values for geometry to get a similar layout?
And why is it ending up so wrong with the current values?
Best Answer
You are setting to much values and geometry warns you:
Remove one of the inner/outer values and calculate the other from \oddsidemargin and bindingoffset: