1\documentclass[pagesize,11pt,bibliography=totoc,numbers=noenddot,DIV=10,twoside=semi,headings=small]{scrbook}
2\usepackage{scrpage2}
3\usepackage{ifluatex}
4\usepackage{ifxetex}
5\ifnum 0\ifxetex 1\fi\ifluatex 1\fi>0
6%%
7%% This section is for LuaTeX and XeTeX
8%% Warning: polyglossia works with LuaTeX starting from TL2013
9%%
10  \usepackage{polyglossia}
11  \setmainlanguage{english}
12\else
13%%
14%% next section is for latex and pdflatex:
15%%
16  \usepackage[french]{babel} %% Use your own babel language
17  \usepackage{ucs}
18  \usepackage[utf8x]{inputenc}
19  \usepackage[T1]{fontenc}
20  \usepackage{pslatex}
21  \usepackage{wasysym}
22  \usepackage{textcomp}
23\fi
24%%
25%% and this section is common
26%%
27%% uncomment these if you use them
28\usepackage{supertabular}  % very big tables
29\usepackage{pdflscape}     % idem
30\usepackage{moreverb}      % for verbatimtab environment FIXME: is this really necessary?
31% Set your margins here:
32\usepackage[top=3cm,bottom=3cm,left=2.5cm,right=2.5cm]{geometry}
33% If you want to have colored links in your pdf, change the following line:
34\usepackage[unicode, bookmarks, colorlinks=false, pdfborder={0 0 0}]{hyperref}
35\usepackage{graphicx}       % provides image insertion
36\usepackage{tabularx}       % provides table insertion
37\usepackage{color}          % provides color handling
38\usepackage{listings}       % provides syntaxic coloration for code
39\usepackage[normalem]{ulem} % provides underlining (\uline{})
40\usepackage{wrapfig}        % usefull for image
41%% these are to be tuned by namespace, as they'll certainly vary
42\let\dokutitlelevelone\part
43\let\dokutitleleveltwo\chapter
44\let\dokutitleleveltree\section
45\let\dokutitlelevelfour\subsection
46\let\dokutitlelevelfive\subsubsection
47
48\input{commands.tex}
49
50\begin{document}
51