%!TEX root = thesis.tex

\documentclass[a4paper,12pt]{book}  

\usepackage[latin1]{inputenc}

\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{pdfsync} 
\usepackage{supertabular} 
\usepackage{array}
\usepackage[ngerman,english]{babel}
\usepackage{supertabular}
\usepackage[numbers]{natbib}
\usepackage{tocbibind}
\usepackage{color}
\usepackage{dsfont}
\usepackage{epstopdf}
\usepackage{xspace}
\usepackage{scrextend}
\usepackage{xfrac}
\usepackage{epstopdf}
\usepackage[ngerman]{babel}

\usepackage{hyperref}
\hypersetup{
	colorlinks=true,
	%colorlinks=false,
	%pdfborder={0 0 0},
	pdftitle={Tensor network states},
	pdfauthor={Roman Bela Bauer}
}

\usepackage{listings}
\lstset{language=C++,basicstyle=\small,numbers=left,stepnumber=5,numberfirstline=true,xleftmargin=20pt}

\usepackage{multibib}
\newcites{me}{List of publications}

\raggedbottom

\addtolength{\topmargin}{-7mm}

% something between 10 and 7
\addtolength\textwidth{10mm}

\setlength{\oddsidemargin}{\paperwidth}
\addtolength{\oddsidemargin}{-\textwidth}
\setlength{\oddsidemargin}{.5\oddsidemargin}
\addtolength{\oddsidemargin}{-1in}
\setlength{\evensidemargin}{\oddsidemargin}

\addtolength\evensidemargin{-3mm}
\addtolength\oddsidemargin{3mm}

\usepackage{enumitem}
%\setitemize[1]{label=$\triangleright$,itemsep=0pt,topsep=2pt,itemindent=-5pt}
\setitemize[1]{label=$\triangleright$,itemsep=0pt,topsep=2pt}

%%%%%%%%%%%%%%
\renewcommand{\sfdefault}{let}
%%%%%%%%%%%%%%%%%

% page style

\def\openone{\leavevmode\hbox{\small1\kern-3.8pt\normalsize1}}%
\pagestyle{fancyplain}  
\fancyhf{}  
\renewcommand{\headrulewidth}{0.3pt}  
\addtolength{\headheight}{2.5pt}  
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}  
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}  
\fancyhead[LE]{\textsl{\rightmark}}  
\fancyhead[RO]{\textsl{\leftmark}}  
\renewcommand{\footrulewidth}{0pt}  
\cfoot{\thepage}  

\fancypagestyle{plain}{  
	\fancyhead{}  
	\renewcommand{\headrulewidth}{0pt}  
}

%\renewcommand{\theta}{\vartheta}
%\renewcommand{\phi}{\varphi}

%\input{pgfexternal.tex}

\usepackage{tikz}
%\pgfrealjobname{thesis}
%\usepackage{pgfmath}
\usetikzlibrary{calc}
\usetikzlibrary{backgrounds}
\usetikzlibrary{arrows}
\usetikzlibrary{shapes.arrows}
\usetikzlibrary{decorations.markings}

\input{pgfstyles}

% figure placement
% http://dcwww.camd.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html#figplacement
\renewcommand{\topfraction}{0.85}
\renewcommand{\textfraction}{0.1}
\renewcommand{\floatpagefraction}{0.75}


