%%
%% $Id$
%%
%%
%##noBuild

\expandafter\ifx\csname llncsSystem\endcsname\relax %
\let\llncsSystem\endinput %
\else
\llncsSystem
\fi

%% PACKAGES
\usepackage[english]{babel}
%% --- Zeichensatz ---
%\usepackage[utf8x]{inputenc}
\usepackage[utf8]{inputenc}
\usepackage{cmap}
\usepackage[T1]{fontenc}		%% Schriftkodierung mit Umlauten
\usepackage{textcomp,textcase,bbding}			%% mit fontenc
\usepackage{lmodern}
% using Bera Mono for monospaced font, since it provides italic style
% and bold face
\usepackage[scaled]{beramono}

\usepackage{microtype}
\microtypesetup{babel,stretch=10,shrink=15,step=3,tracking=smallcaps,final}

%%\bibliographystyle{splncs03}		%% llncs

%% Tabellenzeuch
\usepackage{rotating}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{setspace}

%% einfachere Makros
\usepackage{xspace}
\usepackage[printonlyused,smaller,withpage]{acronym}

\usepackage[style=base,font=small,labelfont=bf]{caption}


%% eigene Floats
\usepackage{float,subfig}
\newcommand{\subfigureautorefname}{\figureautorefname}
%% Farben
\usepackage[x11names,svgnames]{xcolor}   % latex and colors
\usepackage{colortbl}

%marginpar hack
\usepackage{mparhack}
%latex bugs
\usepackage{fixltx2e}

\usepackage[final,procnames]{listings}
\usepackage{latexsym, verbatim}

%
\usepackage{graphicx}
\usepackage{amsmath,amssymb,nicefrac}
\usepackage{tikz}     % pgf graphics
\usetikzlibrary{shapes,arrows,positioning,fit,shadows,backgrounds}
%\usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,calc,through}

\usepackage{url}		%% macht urls?
\usepackage{lastpage}	%% erm\"{o}glicht \pageref{LastPage}

%% Einstellungen f\"{u}rs PDF
\usepackage{pdfpages}
\pdfcompresslevel=6
\usepackage[%
colorlinks=false,   %% 
% linkcolor=MidnightBlue,%
% citecolor=MidnightBlue,%
% urlcolor=MidnightBlue,%
breaklinks=true,
unicode,%
bookmarks=true,
pdfpagescrop={92 112 523 778}, % LNCS paper size
final
]{hyperref}

% for development
\usepackage{ifdraft}
\ifdraft{%
  %% Heavy debugging
  %\usepackage{showframe}
  \usepackage{blindtext}
  \usepackage{draftwatermark}
  \SetWatermarkLightness{0.95}
  \SetWatermarkText{\textsc{Draft}}
  \usepackage[show]{ed}
  %\AtBeginDocument{\pagenumbering{Alph}\edexplanation}
  % see http://www.ctan.org/tex-archive/macros/latex/contrib/ed/ed.pdf
  \AtEndDocument{\ednotemessage}
}{
  \usepackage[hide]{ed}
  \let\todolist=\comment
  \let\endtodolist=\endcomment
  \let\blindtext\relax
  \let\Blindtext\relax
}


\makeatletter
\def\my@doubleempty{%
  \clearpage%
  \ifodd\c@page\relax%
  \else{\thispagestyle{empty}\mbox{}\cleardoublepage}%
  \fi%
}
\def\smashnewline#1{{\let\titlebreak\space\relax%
\let\newline\relax #1}}

\newcounter{bktocdepth}
\setcounter{bktocdepth}{\value{tocdepth}}
\setcounter{tocdepth}{2}
\let\oldtoc\tableofcontents
\renewcommand{\tableofcontents}{%
  \begingroup%
  \let\newline\relax
  \my@doubleempty%
  \setcounter{tocdepth}{\value{bktocdepth}}
  \oldtoc%
  \setcounter{tocdepth}{2}
  \my@doubleempty%
  \endgroup%
}

\let\oldmt\maketitle
\renewcommand{\maketitle}{%
  \begingroup
  \my@doubleempty%
  \oldmt%
  \endgroup
}
\@ifundefined{cleardoubleemptypage}{%
\newcommand{\cleardoubleemptypage}{\my@doubleempty}%
}
\makeatother

\raggedbottom

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "../LinckeHirschfeld_2010_WebbasedDevelopmentEnvironments"
%%% End: 
