% main.tex
\documentclass[11pt]{book}

% --- Math + structure ---
\usepackage{amsmath,amssymb,amsthm}
\usepackage{hyperref}
\usepackage{subfiles} % allows chapters to compile independently

% --- Formatting ---
\usepackage{fancyhdr,parskip}
\usepackage{fullpage}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% add special notation supports
\usepackage[mathscr]{euscript}
\usepackage{mathtools}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% add image package and directory
\usepackage{graphicx}
\usepackage{tikz}
\graphicspath{{./images/}}


% --- Bibliography: biblatex + biber ---
\usepackage[
  backend=biber,
  style=alphabetic,
  sorting=nyt,
  giveninits=true
]{biblatex}

% In the assembled book, we load *all* chapter bib files here,
% and print one combined bibliography at the end.
\addbibresource{chapters/chap1.bib}
\addbibresource{chapters/chap2.bib}
\addbibresource{chapters/chap3.bib}

%%
% Some convenient commands if you need to use integrals
\newcommand{\is}{\hspace{2pt}}
\newcommand{\dx}{\is dx}


%%%%%%%%%%%%%%%%%%%%%%
% These are commands you can use that will generate nice things in TeX.  Feel free to define your own, too.
\newcommand{\Z}{\mathbb{Z}} % integers
\newcommand{\Q}{\mathbb{Q}} % rationals
\newcommand{\R}{\mathbb{R}} % reals
\newcommand{\C}{\mathbb{C}} % complex numbers
\newcommand{\ds}{\displaystyle} % invoke "display style", which makes fractions come out big, etc.
\newcommand{\charac}{\operatorname{char}} % characteristic of a field
\newcommand{\st}{\ensuremath{\,:\,}} % Makes the colon in set-builder notation space properly

%%%%%%%%%%%%%%%%%%%%%%
% These commands create theorem-like environments.
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{prop}[theorem]{Proposition}
\newtheorem{defn}[theorem]{Definition}

\title{Concentration of Measure And Quantum Entanglement}
\author{Zheyuan Wu}
\date{\today}

\begin{document}
\frontmatter
\maketitle
\tableofcontents

\mainmatter

% Each chapter is in its own file and included as a subfile.
\subfile{chapters/chap1}
\subfile{chapters/chap2}
\subfile{chapters/chap3}

\backmatter
\cleardoublepage
\printbibliography[title={References}]

\end{document}
