\ProvidesPackage{parameter_initialization_style}

\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[usenames,dvipsnames]{color}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{subfig}
\usepackage{listings}
\usepackage{array}
\usepackage{longtable}
\usepackage{supertabular}
\usepackage{multirow}
\usepackage[table]{xcolor}
\usepackage[pdftex]{graphicx}
\usepackage[pdftex,plainpages=false,pagebackref]{hyperref}
%\usepackage{floatflt}
\usepackage{wrapfig}
\usepackage[]{tocbibind}
\usepackage{appendix}
\usepackage{ifthen}
\usepackage{times}            %true type fonts
\usepackage{avant}            % Sans Serif
\usepackage{courier}          % Typewriter
\usepackage{textcomp}
\usepackage{url}

\usepackage{geometry}
\geometry{
  a4paper,
  total={210mm,297mm},
  left=25mm,
  right=25mm,
  top=25mm,
  bottom=20mm
}

\newlength{\mylinewidth}
\setlength{\mylinewidth}{\linewidth}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\parindent}{0in}

\usepackage{fancyhdr}
\setlength{\headheight}{15pt}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{ \markboth{#1}{}}

\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\textit{ \nouppercase{\leftmark}} }
\fancyhead[LO]{\textit{ \nouppercase{\rightmark}} }

\fancypagestyle{plain}{
  \fancyhf{}                          % remove everything
  \renewcommand{\headrulewidth}{0pt}  % remove lines
  \renewcommand{\footrulewidth}{0pt}
}

\numberwithin{figure}{chapter}   %numbering by chapter

\definecolor{lightgray}{rgb}{0.95,0.95,0.95}
\definecolor{darkred}{rgb}{0.8,0.2,0.2}
\definecolor{darkgreen}{RGB}{0,121,0}

\lstset{
  language=C++,
  keywordstyle=\color{black}\bfseries,
  stringstyle=\color{red},
  commentstyle=\color{darkred},
  basicstyle=\footnotesize,
  numbers=none,
  numberstyle=\footnotesize,
  stepnumber=2,
  numbersep=5pt,
  backgroundcolor=\color{lightgray},
  showspaces=false,
  showstringspaces=false,
  showtabs=false,
  frame=none,
  tabsize=2,
  captionpos=b,
  breaklines=true,
  breakatwhitespace=false,
  escapeinside={\%*}{*)}
}

\makeatletter
\newcommand\figcaption{\def\@captype{figure}\caption}
\newcommand\tabcaption{\def\@captype{table}\caption}
\makeatother

\newenvironment{narrow}[2]{
  \begin{list}{}{
    \setlength{\topsep}{0pt}
    \setlength{\leftmargin}{#1}
    \setlength{\rightmargin}{#2}
    \setlength{\listparindent}{\parindent}
    \setlength{\itemindent}{\parindent}
    \setlength{\parsep}{\parskip}
  }
  \item[]}{\end{list}
}

\newcommand{\goodgap}{
  \hspace{\subfigtopskip}
  \hspace{\subfigbottomskip}
}

\renewcommand{\textfraction}{0.0003} % make large figures on page possible

\pdfcompresslevel=9               %USE WHEN DOCUMENT IS PDFLATEX'ED!
\pdfoutput=1                      %USE WHEN DOCUMENT IS PDFLATEX'ED!
\hypersetup{
  bookmarksopen=true,
  bookmarksopenlevel=0,
  pdfauthor={Ilse Koenig, GSI Darmstadt},
  pdftitle={Parameter initialization in Hydra2 and HGeant2},
  pdfkeywords={Hades, Hydra2, HGeant2},
  pdfborder = {0 0 0},
  colorlinks,
  linkcolor={red!50!black},
  citecolor={blue!50!black},
  urlcolor={blue!80!black}
}
