% 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}
\usepackage{braket}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% add image package and directory
\usepackage{graphicx}
\usepackage{tikz}
\graphicspath{{./images/}}
% dependency graph
\usetikzlibrary{trees,positioning,arrows.meta,backgrounds}
% floating graph
\usepackage{float}

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

% --- Beamer-like blocks (printer-friendly) ---
\usepackage[most]{tcolorbox}
\usepackage{xcolor}

% A dedicated "Examples" block (optional convenience wrapper)
\newtcolorbox{examples}[1][Example]{%
  enhanced,
  breakable,
  colback=white,
  colframe=black!90,
  coltitle=white,            % title text color
  colbacktitle=black!90,      % <<< grey 80 title bar
  boxrule=0.6pt,
  arc=1.5mm,
  left=1.2mm,right=1.2mm,top=1.0mm,bottom=1.0mm,
  fonttitle=\bfseries,
  title=#1
}


% In the assembled book, we load *all* chapter bib files here,
% and print one combined bibliography at the end.

\addbibresource{main.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 are for convenient notation for the concentration of measure theorem
\newcommand{\obdiam}{\operatorname{ObserDiam}}
\newcommand{\diam}{\operatorname{diam}}


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

%%%%%%%%%%%%%%%%%%%%%%
% Add abstract for book
\newenvironment{abstract}{
  \begin{center}
    \bfseries Abstract
  \end{center}
    \quotation
}{
  \endquotation
}

\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{preface}
\subfile{chapters/chap0}
\subfile{chapters/chap1}
\subfile{chapters/chap2}
% \subfile{chapters/chap3}

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

\end{document}
