

% My LaTeX-settings to be used with python-docutils and reStructuredText
% Landscape-version

% Author:
% Juhapekka Tolvanen
% http://iki.fi/juhtolv
% juhtolv (at) iki (dot) fi

% This file is public domain. There is no warranty.

% 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}

% To ease checking pdf(la)tex with if-statements
%\RequirePackage{ifpdf}

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

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

%\usepackage[17pt]{extsizes}

\KOMAoptions{fontsize=17pt}

\usepackage{slantsc}

%%% For some reason this is no more needed:
%\renewcommand{\encodingdefault}{U}


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

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

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

%\usepackage{lmodern}

%%% This is the old name for \setmainfont, retained for backwards compatibility.
%\setromanfont{DejaVu Serif}

\setmainfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\setsansfont{DejaVu Sans}

\newfontfamily\mytitlefont[BoldFont={DejaVu Serif}]{DejaVu Serif Bold}


%%% Now use that \mytitlefont .
\setkomafont{title}{\mytitlefont\Huge}
\setkomafont{subtitle}{\mytitlefont\huge}

%\setkomafont{title}{\rmfamily\bfseries\Huge}
%\setkomafont{subtitle}{\rmfamily\bfseries\huge}


% Not used in certain document classes
%\setkomafont{part}{}
%\setkomafont{partnumber}{}
%\setkomafont{chapter}{}

%\setkomafont{section}{\mytitlefont\bfseries\LARGE}
%\setkomafont{subsection}{\mytitlefont\bfseries\Large}
%\setkomafont{subsubsection}{\mytitlefont\bfseries\large}
%\setkomafont{paragraph}{\mytitlefont\bfseries\normalsize}
%\setkomafont{subparagraph}{\mytitlefont\bfseries\normalsize}

\setkomafont{section}{\mytitlefont\LARGE}
\setkomafont{subsection}{\mytitlefont\Large}
\setkomafont{subsubsection}{\mytitlefont\large}
\setkomafont{paragraph}{\mytitlefont\normalsize}
\setkomafont{subparagraph}{\mytitlefont\normalsize}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% cmap: "Make the PDF files generated by pdflatex "searchable and copyable"
% in Adobe (Acrobat) Reader and other compliant PDF viewers."
% (Must be before fontenc-package)
%\ifpdf % Some people may have buggy cmap.
%\usepackage{cmap}
%\fi


%\ifpdf
%\usepackage[protrusion=true,expansion=true,verbose=true,final=true]{microtype}
%\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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

\pagestyle{plain}
\KOMAoptions{headings=small,headheight=0mm,headlines=0,headinclude=false,footinclude=false}
%\areaset[0cm]{28.7cm}{16.6cm}
\areaset{28.2cm}{16.1cm}

\recalctypearea


