Page LayoutKOMA-Script | Specific Page Layout

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
MoonKid
Posts: 8
Joined: Sun Nov 18, 2012 4:21 pm

KOMA-Script | Specific Page Layout

Post by MoonKid »

I know that using Arial as a font and specifing the page borders in centimeters is typographicly stupid. But it is the standard of my university. I have no choice!

In the past I used geometry for that. But it did some things that destroy my settings for the footline.

So how can I set the page borders in centimeters?

This is my sample code

Code: Select all

\documentclass[paper=A4,pagesize=auto,12pt,footinclude=true,BCOR=0mm]{scrartcl}
\usepackage{lipsum}
\usepackage{xltxtra} % lädt wiederum fontspec, was wiederum xunicode lädt
\defaultfontfeatures{Mapping=tex-text}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new]{german}
% Schriftart Arial
\setmainfont{Arial}

% Kopf- und Fußzeilen
\usepackage[footsepline]{scrpage2}
\usepackage[onehalfspacing]{setspace}
\recalctypearea
% Seitenränder
%\usepackage[left=25mm, right=25mm, top=25mm, bottom=20mm]{geometry}

\pagestyle{scrheadings}
\cfoot{\pagemark}
\ofoot{yyyy-mm-dd}
\ifoot{Author X}

\begin{document}
\lipsum
\end{document}
XeLaTeX from CTAN TeX-Live
with vim-latexsuite from an Ubuntu-based OS

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

KOMA-Script | Specific Page Layout

Post by cgnieder »

One shouldn't mix KOMA-Script's layout options with geometry. Since you need a fixed layout you should set all options with the latter:

Code: Select all

\documentclass[12pt]{scrartcl}
\usepackage{lipsum}
\usepackage{xltxtra} % lädt wiederum fontspec, was wiederum xunicode lädt
\defaultfontfeatures{Mapping=tex-text}
\usepackage{polyglossia}
\setdefaultlanguage[spelling=new]{german}
% Schriftart Arial
% \setmainfont{Arial}

% Kopf- und Fußzeilen
\usepackage[footsepline]{scrpage2}
\usepackage[onehalfspacing]{setspace}
\recalctypearea
% Seitenränder

\pagestyle{scrheadings}
\cfoot{\pagemark}
\ofoot{yyyy-mm-dd}
\ifoot{Author X}
\usepackage[
  paper=a4paper,
  left=25mm,
  right=25mm,
  top=25mm,
  bottom=20mm,
  includefoot,
  foot=\baselineskip,
  bindingoffset=0mm]{geometry}

\begin{document}
\lipsum
\end{document}
Regards
site moderator & package author
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

KOMA-Script | Specific Page Layout

Post by cgnieder »

I take it the question is answered? I took the liberty of marking it as such...
site moderator & package author
Post Reply