
%\documentclass{scrartcl}
\documentclass[11pt,a4paper,oneside]{scrartcl}


%% This makes stfloats or fix2col obsolete. This loads fixltx2e.
%% "When the new output routine for LaTeX3 is done, this package will
%% be obsolete. The sooner the better..."
\RequirePackage{dblfloatfix}
% This makes type1cm and type1ec obsolete:
\RequirePackage{fix-cm}


\usepackage{xltxtra} % loads fixltx2e, metalogo, xunicode, fontspec
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}

\usepackage{lipsum}

%\setcounter{secnumdepth}{3}
\setcounter{secnumdepth}{7}

%%%%%%%%%%%%%%%%%%%%%
% Packages

%\usepackage{slantsc}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts
%

% Most special chars, also copyleft
\usepackage{textcomp}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts in XeLaTeX way:

\RequirePackage{fontspec}
\RequirePackage{xltxtra}

%%% http://www.alice-dsl.net/ralfstubner/fplneu-otf.html
% %%% This is the old name for \setmainfont, retained for backwards compatibility.
%\setromanfont[Numbers=Lowercase]{FPL Neu}
\setmainfont[Numbers=Lowercase]{FPL Neu}


%%% http://home.vr-web.de/was/x/FPL/
%%%\setromanfont{FPL Neu}
%%%\setmainfont{FPL Neu}


\setsansfont{MgOpen Cosmetica}
%%% This font is buggy:
%%% WARNING ** Obsolete four arguments of "endchar" will be used for Type 1 "seac" operator.
%%% ** ERROR ** This font using the "seac" command for accented characters...
%%%\setsansfont{Epigrafica}

%\setmonofont{txtt}
\setmonofont{Inconsolata}



\newfontface\mytitlefont{M+ 1p black}
\newfontface\mysubtitlefont{M+ 1p heavy}

\newfontface\mysectionfont{M+ 1p black}
\newfontface\mysubsectionfont{M+ 1p heavy}
\newfontface\mysubsubsectionfont{M+ 1p bold}
\newfontface\myparagraphfont{M+ 1p medium}
\newfontface\mysubparagraphfont{M+ 1p regular}

\addtokomafont{title}{\mytitlefont}
\addtokomafont{subtitle}{\mysubtitlefont}
\addtokomafont{section}{\mysectionfont}
\addtokomafont{subsection}{\mysubsectionfont}
\addtokomafont{subsubsection}{\mysubsubsectionfont}
\addtokomafont{paragraph}{\myparagraphfont}
\addtokomafont{subparagraph}{\mysubparagraphfont}


\usepackage{setspace}
\singlespacing
%\onehalfspacing
%\spacing{1.7} % This causes bugs like this: (\end occurred inside a group at level 1) 
%\doublespacing


%\KOMAoptions{DIV=13,BCOR=15mm,headings=big}
\KOMAoptions{DIV=13,BCOR=15mm}

\recalctypearea


\title{foo}
\subtitle{bar}


\begin{document}
\maketitle

\section{foo}

\lipsum[1]


\subsection{bar}

\lipsum[2]


\subsubsection{baz}

\lipsum[3]


\paragraph{qux}

\lipsum[4]


\subparagraph{quux}

\lipsum[5]



\end{document}




%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
