

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

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

\RequirePackage{typearea}

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

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

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

%\setromanfont{DejaVu Serif}
%\setmainfont{DejaVu Serif}
%\setsansfont{DejaVu Sans}
%\setmonofont{DejaVu Sans Mono}

\RequirePackage{fontspec}
\RequirePackage{xltxtra}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}


%%% http://www.alice-dsl.net/ralfstubner/fplneu-otf.html
\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}

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

% 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

\KOMAoptions{DIV=13,BCOR=15mm}

\recalctypearea

