I've read that I shouldn't use the geometry
package with KOMA-Script. So, I would like to convert my page layout to something similar using Koma-Scripts built in typearea
features.
\documentclass[american,headings=openany]{scrbook}
\usepackage{scrlayer-scrpage} %\input{headersfooters}
\usepackage{microtype}
\usepackage{setspace} \onehalfspacing
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%
% % % these font packages require a full install %
\renewcommand{\ttdefault}{lmtt} % monospace font %
\usepackage{libris} % san serif font %
\usepackage{tgschola} % roman font %
%
%
\usepackage[paperwidth=5.06in,paperheight=7.81in]{geometry}
\geometry{verbose,tmargin=0.75in,bmargin=0.75in,%
lmargin=0.7in,rmargin=0.4in,headheight=0.25in,%
headsep=0.2in,footskip=0.4in}%
%
\begin{document}
% \input{mybook} % I will input many chapters %
Hello World, this will be my book.
\end{document}
Can anyone provide me the typearea
code that would replace geometry
with similar results? It does not have to be exact. I want to learn which typearea
options I will need, and what adjustments I need to tinker with. I've read through the scrguien.pdf
but it's not sinking in very well (I'm still confused). But so far I've read about the BCOR=
and DIV=
options, the possible values for DIV
, especially the numeric values, the last
value, the areaset
value. And the \typearea
command. But I have no idea what to do with them.
Best Answer
Well, at last you can read the definition of the page layout with
typearea
in the documentation of KOMA-Script, page 24, chapterConstruction of the Page Layout with typearea
(you can open it withtexdoc komascript
.You can also use package
layout
or packagelayouts
to check the resulting values for different parameters fortypearea
(documentation:texdoc layout
ortexdoc layouts
).The main difference between
geometry
andtypearea
is, thattypearea
calculates an optimal typing area depending on the used fontsize butgeometry
"only" uses the given values for margins etc to create a typing area. Withgeometry
there is no algorithm to calculate an typing area depending on the fontsize.So if you want a good looking typography for the page (and you do not know what is a good typography) use
typearea
to calculate a good looking page. If you have to follow rules given by your university for margins etc. then it is easier to usegeometry
to fullfill the rules.