Meine Vorlage basiert auf Koma Script und daher solltest du dort Lösungen für alles finden können. (
%% Seitenlayout ==========================================================
%
% Layout laden um im Dokument den Befehl \layout nutzen zu koennen
%%% Doc: no documentation
%\usepackage[verbose]{layout}
%
% Layout mit 'geometry'
%%% Doc: ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/geometry/manual.pdf
% \usepackage{geometry}
\IfPackageLoaded{geometry}{%
\geometry{%
%%% Paper Groesse
a4paper, % Andere a0paper, a1paper, a2paper, a3paper, , a5paper, a6paper,
% b0paper, b1paper, b2paper, b3paper, b4paper, b5paper, b6paper
% letterpaper, executivepaper, legalpaper
%screen, % a special paper size with (W,H) = (225mm,180mm)
%paperwidth=,
%paperheight=,
%papersize=, %{ width , height }
%landscape, % Querformat
portrait, % Hochformat
%%% Koerper Groesse
%hscale=, % ratio of width of total body to \paperwidth
% hscale=0.8 is equivalent to width=0.8\paperwidth. (0.7 by default)
%vscale=, % ratio of height of total body to \paperheight
% vscale=0.9 is equivalent to height=0.9\paperheight.
%scale=, % ratio of total body to the paper. scale={ h-scale , v-scale }
%totalwidth=, % width of total body % (Generally, width >= textwidth)
%totalheight=, % height of total body, excluding header and footer by default
%total=, % total={ width , height }
%textwidth=, % modifies \textwidth, the width of body
%textheight=, % modifies \textheight, the height of body
%body=, % { width , height } sets both \textwidth and \textheight of the body of page.
lines=45, % enables users to specify \textheight by the number of lines.
%includehead, % includes the head of the page, \headheight and \headsep, into total body.
%includefoot, % includes the foot of the page, \footskip, into body.
%includeheadfoot, % sets both includehead and includefoot to true
%includemp, % includes the margin notes, \marginparwidth and \marginparsep, into body
%includeall, % sets both includeheadfoot and includemp to true.
%ignorehead, % disregards the head of the page, headheight and headsep in determining vertical layout
%ignorefoot, % disregards the foot of page, footskip, in determining vertical layout
%ignoreheadfoot, % sets both ignorehead and ignorefoot to true.
%ignoremp, % disregards the marginal notes in determining the horizontal margins
ignoreall, % sets both ignoreheadfoot and ignoremp to true
heightrounded, % This option rounds \textheight to n-times (n: an integer) of \baselineskip
%hdivide=, % { left margin , width , right margin }
% Note that you should not specify all of the three parameters
%vdivide=, % { top margin , height , bottom margin }
%divide=, % ={A,B,C} % is interpreted as hdivide={A,B,C} and vdivide={A,B,C}.
%%% Margin
%left=, % left margin (for oneside) or inner margin (for twoside) of total body
% alias: lmargin, inner
%right=, % right or outer margin of total body
% alias: rmargin outer
%top=, % top margin of the page.
% Alias : tmargin
%bottom=, % bottom margin of the page
% Alias : bmargin
%hmargin=, % left and right margin. hmargin={ left margin , right margin }
%vmargin=, % top and bottom margin. vmargin={ top margin , bottom margin }
%margin=, % margin={A,B} is equivalent to hmargin={A,B} and vmargin={A,B}
%hmarginratio, % horizontal margin ratio of left (inner) to right (outer).
%vmarginratio, % vertical margin ratio of top to bottom.
%marginratio, % marginratio={ horizontal ratio , vertical ratio }
%hcentering, % sets auto-centering horizontally and is equivalent to hmarginratio=1:1
%vcentering, % sets auto-centering vertically and is equivalent to vmarginratio=1:1
%centering, % sets auto-centering and is equivalent to marginratio=1:1
twoside, % switches on twoside mode with left and right margins swapped on verso pages.
%asymmetric, % implements a twosided layout in which margins are not swapped on alternate pages
% and in which the marginal notes stay always on the same side.
bindingoffset=5mm, % removes a specified space for binding
%%% Dimensionen
%headheight=, % Alias: head
%headsep=, % separation between header and text
%footskip=, % distance separation between baseline of last line of text and baseline of footer
% Alias: foot
%nohead, % eliminates spaces for the head of the page
% equivalent to both \headheight=0pt and \headsep=0pt.
%nofoot, % eliminates spaces for the foot of the page
% equivalent to \footskip=0pt.
%noheadfoot, % equivalent to nohead and nofoot.
%footnotesep=, % changes the dimension \skip\footins,.
% separation between the bottom of text body and the top of footnote text
marginparwidth=0pt, % width of the marginal notes
% Alias: marginpar
%marginparsep=,% separation between body and marginal notes.
%nomarginpar, % shrinks spaces for marginal notes to 0pt
%columnsep=, % the separation between two columns in twocolumn mode.
%hoffset=,
%voffset=,
%offset=, % horizontal and vertical offset.
% offset={ hoffset , voffset }
%twocolumn, % twocolumn=false denotes onecolumn
twoside,
textwidth=400pt, % sets \textwidth directly
%textheight=, % sets \textheight directly
%reversemp, % makes the marginal notes appear in the left (inner) margin
% Alias: reversemarginpar
}
} % Endif
% - Anzeigen des Layouts -
\IfPackageLoaded{geometry}{%
%\geometry{showframe}
}
% Layout mit 'typearea'
%%% Doc: ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/koma-script/scrguide.pdf
\IfPackageLoaded{typearea}{% Wenn typearea geladen ist
\IfPackageNotLoaded{geometry}{% aber nicht geometry
\typearea[current]{last}
}
}
% BCOR
% current % Satzspiegelberechnung mit dem aktuell gültigen BCOR-Wert erneut
% % durchführen.
% DIV
% calc % Satzspiegelberechnung einschließlich Ermittlung eines guten
% % DIV-Wertes erneut durchführen.
% classic % Satzspiegelberechnung nach dem
% % mittelalterlichen Buchseitenkanon
% % (Kreisberechnung) erneut durchführen.
% current % Satzspiegelberechnung mit dem aktuell gültigen DIV-Wert erneut
% % durchführen.
% default % Satzspiegelberechnung mit dem Standardwert für das aktuelle
% % Seitenformat und die aktuelle Schriftgröße erneut durchführen.
% % Falls kein Standardwert existiert calc anwenden.
% last % Satzspiegelberechnung mit demselben DIV -Argument, das beim
% % letzten Aufruf angegeben wurde, erneut durchführen
%\usepackage[colorgrid,texcoord,gridunit=mm]{showframe}
\raggedbottom % Variable Seitenhoehen zulassen
IfPackageLoaded, IfChapterDefined usw musst du wieder entfernen da sie nur in meiner Vorlage gültig sind.