\documentclass[11pt]{report}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{amsmath, amssymb, amstext, esint}
\usepackage{amsthm, stackrel, xifthen, mathtools, graphicx}
\usepackage[makeroom]{cancel}
\usepackage{hyperref, cleveref, bbm}
\usepackage{enumerate, subcaption}
\usepackage[shortlabels]{enumitem}
\usepackage{multicol}
\usepackage{tikz, pgfplots}
\usepackage{kbordermatrix}
\usepackage{fancyhdr}
\usepackage{pdfpages}
\usepackage[arrowdel]{physics}
\usetikzlibrary{calc,trees,decorations.markings,positioning,arrows,fit,shapes,angles,patterns}
\DeclareDocumentCommand\vnabla{}{\vectorarrow{\nabla}}

\graphicspath{assets}

\usepackage{color}
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
\usepackage[
    type={CC},
    modifier={by-sa},
    version={4.0},
]{doclicense}

\usepackage{subfiles}

\DeclareMathOperator{\spn}{span}
%\DeclareMathOperator{\dim}{dim}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\const}{const}
\DeclareMathOperator{\Log}{Log}
\DeclareMathOperator{\Var}{Var}
\DeclareMathOperator*{\esssup}{ess\,sup}

\newcommand{\natn}{\mathbb{N}}
\newcommand{\intn}{\mathbb{Z}}
\newcommand{\ratn}{\mathbb{Q}}
\newcommand{\realn}{\mathbb{R}}
\newcommand{\cmpln}{\mathbb{C}}
\newcommand{\field}{\mathbb{K}}

\newcommand{\powerset}{\mathcal{P}}
\newcommand{\rec}[1]{\frac{1}{#1}}
\newcommand{\idf}{\text{id}}
\newcommand{\inv}[1]{{#1}^{-1}}
\newcommand{\eqlbl}[1]{\stackrel{\text{#1}}{=}}
\newcommand{\implbl}[1]{\overset{\text{#1}}{\implies}}
\newcommand{\imag}{\imaginary}
\newcommand{\limes}[2]{\lim_{#1 \rightarrow #2}}
\newcommand{\limn}{\lim_{n \rightarrow \infty}}
\newcommand{\limk}{\lim_{k \rightarrow \infty}}
\newcommand{\limz}{\lim_{n \rightarrow 0}}
\newcommand{\limsupn}{\limsup_{n \rightarrow \infty}}
\newcommand{\liminfn}{\liminf_{n \rightarrow \infty}}
\newcommand{\seq}[1]{\left(#1_n\right)}
\newcommand{\nseqdef}[1]{\seq{#1} \subset \natn}
\newcommand{\rseqdef}[1]{\seq{#1} \subset \realn}
\newcommand{\cseqdef}[1]{\seq{#1} \subset \cmpln}
\newcommand{\rcseqdef}[1]{\seq{#1} \subset \realn \text{ (or } \cmpln \text{)}}
\newcommand{\anyseqdef}[2][x]{\seq{#1} \subset #2}
\newcommand{\series}[2][\infty]{\sum_{#2 = 1}^{#1}}
\newcommand{\finite}{\text{ finite}}
\newcommand{\conj}[1]{\overline{#1}}
\newcommand{\must}[1][=]{\stackrel{!}{#1}}
\newcommand{\domain}{\mathcal{D}}

\newcommand{\metric}[1][X]{(#1, d)}
\newcommand{\dnorm}{\norm{\cdot}}
\newcommand{\normed}[1][V]{(#1, \dnorm)}
\newcommand{\supnorm}[1]{\norm{#1}_{\infty}}
\newcommand{\cnorm}[2][1]{\norm{#2}_{C_{#1}}}

\newcommand{\oball}[1][\epsilon]{B_{#1}}
\newcommand{\cball}[1][\epsilon]{K_{#1}}
\newcommand{\Oball}{\oball[r]}
\newcommand{\Cball}{\cball[r]}

\newcommand{\oline}[1][{x,y}]{S_{#1}}
\renewcommand{\cline}[1][{x,y}]{\overline{S_{#1}}}

\newcommand{\interior}[1]{\mathring{#1}}
\newcommand{\boundary}[1]{\partial #1}
\newcommand{\closure}[1]{\overline{#1}}

\newcommand{\conv}[1]{\xrightarrow{\makebox[2em][c]{$\scriptstyle#1$}}}
\newcommand{\convinf}{\conv{n \rightarrow \infty}}

\renewcommand{\kbldelim}{(}
\renewcommand{\kbrdelim}{)}

\newcommand{\setfam}{\mathcal{A}}
\newcommand{\setfamb}{\mathcal{B}}
\newcommand{\curve}{\mathcal{C}}
\newcommand{\measureable}{(\Omega, \setfam)}
\newcommand{\measure}{(\Omega, \setfam, \mu)}
\newcommand{\intervals}{\mathcal{I}}
\newcommand{\charfun}{\mathbbm{1}}

\newcommand{\bigo}{\mathcal{O}}

\newcommand{\reader}{Left as an exercise for the reader.}
\newcommand{\noproof}{Without proof.}
\newcommand{\setvert}{\,\vert\,}
\newcommand{\set}[2][]{%
	\left\{%
		#2%
		\ifthenelse{\isempty{#1}}%
			{}%
			{\,\middle|\, #1}%
	\right\}%
}

\newcommand{\equalexpl}[1]{%
  \underset{\substack{\big\uparrow\\\mathrlap{\text{\hspace{-1.5em}#1}}}}{=}}
\newcommand{\leexpl}[1]{%
  \underset{\substack{\big\uparrow\\\mathrlap{\text{\hspace{-1.5em}#1}}}}{\le}}

\newsavebox{\mathbox}\newsavebox{\mathquote}
\makeatletter
\newcommand{\mathquotes}[1]{% \mathquotes{<stuff>}
  \savebox{\mathquote}{\text{``}}% Save quotes
  \savebox{\mathbox}{$\displaystyle #1$}% Save <stuff>
  \raisebox{\dimexpr\ht\mathbox-\ht\mathquote\relax}{``}#1\raisebox{\dimexpr\ht\mathbox-\ht\mathquote\relax}{''}
}
\makeatother

\theoremstyle{definition}
\newtheorem{defi}{Definition}[chapter]

\theoremstyle{remark}
\newtheorem{eg}[defi]{Example}
\newtheorem{rem}[defi]{Remark}

\theoremstyle{plain}
\newtheorem{thm}[defi]{Theorem}
\newtheorem{lem}[defi]{Lemma}
\newtheorem{cor}[defi]{Corollary}

\newenvironment{hproof}{%
  \renewcommand{\proofname}{Heuristic Proof}\proof}{\endproof}
  
\Crefname{defi}{Definition}{Definitions}
\crefname{defi}{Def.}{Defs.}
\Crefname{rem}{Remark}{Remarks}
\crefname{rem}{Rem.}{Rems.}

\Crefname{thm}{Theorem}{Theorems}
\crefname{thm}{Thm.}{Thms.}
\Crefname{lem}{Lemma}{Lemmas}
\crefname{lem}{Lem.}{Lems.}
\Crefname{cor}{Corollary}{Corollaries}
\crefname{cor}{Cor.}{Cors.}

\pgfplotsset{compat=1.17}

\newcommand{\drawge}{-- (rel axis cs:1,0) -- (rel axis cs:1,1) -- (rel axis cs:0,1) \closedcycle}
\newcommand{\drawle}{-- (rel axis cs:1,1) -- (rel axis cs:1,0) -- (rel axis cs:0,0) \closedcycle}

\begin{document}
\begin{titlepage}
  \begin{center}
    \vspace*{5cm}
    \Huge{Mathematics for Physicists}\\[1cm]
    \Large{\href{https://www.github.com/Lauchmelder23/Mathematics}{https://www.github.com/Lauchmelder23/Mathematics}}\\
    \Large{Alma Mater Lipsiensis}\\[0,5cm]
    \normalsize{\today} \\[7,5cm]
  \end{center}
  \doclicenseThis
\end{titlepage}

\tableofcontents

\pagestyle{headings}

\subfile{chapters/FaN.tex}
\subfile{chapters/real_analysis_1.tex}
\subfile{chapters/linear_algebra.tex}
\subfile{chapters/real_analysis_2.tex}
\subfile{chapters/topo_of_metr_spaces.tex}
\subfile{chapters/multivar_calc.tex}
\subfile{chapters/measures_integrals.tex}
\subfile{chapters/ode.tex}
\subfile{chapters/int_submanifold.tex}
\subfile{chapters/complex_analysis.tex}
\subfile{chapters/fourier_transform.tex}
\subfile{chapters/operator_theory.tex}
\subfile{chapters/spectral_theory.tex}

\end{document}
