Skip to content

Commit

Permalink
Move various commands into preamble
Browse files Browse the repository at this point in the history
Tried switching to tgpaella but doesn't seem to actually switch fonts
  • Loading branch information
Zentrik committed Jan 19, 2024
1 parent 05af67b commit a53e90d
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 49 deletions.
Binary file modified CodingAndCryptography/cc.pdf
Binary file not shown.
17 changes: 2 additions & 15 deletions CodingAndCryptography/cc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,12 @@
\def\npart {II}
\def\nterm {Lent}
\def\nyear {2023}
\def\nlecturer {Dr ...}
\def\nlecturer {Dr Stuart Martin}
\def\ncourse {Coding and Cryptography}

\input{../preamble-dynamic.tex}
\usepackage{relsize}
% \RequirePackage{unicode-math}
\usepackage{fdsymbol}
\usepackage{faktor}

\newcommand{\symmdiff}{\mathrel{\raisebox{1pt}{$\mathsmaller\triangle$}}}
\newcommand{\transpose}{\intercal}
\DeclareMathOperator{\vecspan}{span}
\newcommand{\prob}[1]{\mathbb{P}\left({#1}\right)}
\newcommand{\expect}[1]{\mathbb{E}\left[{#1}\right]}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\newcommand{\midd}{\,\middle|\,}
\newcommand{\genset}[1]{\left\langle{} #1 \right\rangle}
\DeclarePairedDelimiter\Brackets{\lBrack}{\rBrack}
\author{Based on lectures by \nlecturer \ and notes by thirdsgames.co.uk}

\setcounter{section}{-1}
\begin{document}
Expand Down
Binary file added CodingAndCryptography/cc_lmodern.pdf
Binary file not shown.
8 changes: 1 addition & 7 deletions Linear Algebra/Linear Algebra.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
\def\ncourse {Linear Algebra}

\input{../preamble-dynamic.tex}
\newcommand{\genset}[1]{\langle{} #1 \rangle}
\DeclareMathOperator{\vecspan}{span}
\newcommand{\transpose}{\intercal}
\DeclareMathOperator{\nullity}{null}
\newcommand{\sstar}{{\star\star}}
\DeclareMathOperator{\adj}{adj}

\author{Based on lectures by \nlecturer \ and notes by thirdsgames.co.uk}
\numberwithin{equation}{section}
Expand All @@ -30,7 +24,7 @@
\include{02-Linear.tex}
\include{03-Dual.tex}
\include{04-bilinear.tex}
\include{05-determinant.tex}
\include{05-determinant.tex}
\include{06-adjugate.tex}
\include{07-Eigenvectors.tex}
\include{08-Jordan.tex}
Expand Down
Binary file modified Markov Chains/markov.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion Markov Chains/markov.tex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
\DeclareMathOperator{\Markovop}{Markov}
\newcommand{\psub}[2]{\mathbb{P}_{#1}\left({#2}\right)}
\newcommand{\psubx}[1]{\psub{x}{#1}}
\newcommand{\prob}[1]{\mathbb{P}\left({#1}\right)}
\newcommand{\esub}[2]{\mathbb{E}_{#1}\left[{#2}\right]}

\author{Based on lectures by \nlecturer \ and notes by thirdsgames.co.uk}
Expand Down
3 changes: 1 addition & 2 deletions Methods/Methods.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
\def\ncourse {Methods}

\input{../preamble-dynamic.tex}
% \newcommand{\norm}[1]{\left \lVert #1 \right \rVert}
\DeclareMathOperator{\sgn}{sgn}

\author{Based on lectures by \nlecturer \ and notes by thirdsgames.co.uk}
Expand Down Expand Up @@ -35,6 +34,6 @@
% \part{PDEs on Unbounded Domains}
\include{09-Characteristics.tex}
\include{10-PDEsGreens.tex}

% \part{Inhomogenous ODEs and Greens Functions}
\end{document}
14 changes: 0 additions & 14 deletions ProbAndMeasure/probmeasure.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@
\def\ncourse {Probability and Measure}

\input{../preamble-dynamic.tex}
\usepackage{relsize}

\newcommand{\symmdiff}{\mathrel{\raisebox{1pt}{$\mathsmaller\triangle$}}}
\newcommand{\prob}[1]{\mathbb{P}\left({#1}\right)}
\let \emptyset \varnothing
\newcommand{\expect}[1]{\mathbb{E}\left[{#1}\right]}
% \DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
% \renewcommand{\norm}[1]{\left \lVert #1 \right \rVert}
\newcommand{\wildcard}{{}\cdot{}}
\DeclareMathOperator*{\esssup}{ess\ sup}
% \DeclarePairedDelimiter\Brackets{[\![}{]\!]}
\newcommand{\hhat}[1]{\hat{\hat{#1}}}
\newcommand{\midd}{\,\middle|\,}

% \includeonly{07_ergodic_theory.tex}

Expand Down
Binary file modified QuantumInfoAndComputing/qic.pdf
Binary file not shown.
9 changes: 2 additions & 7 deletions QuantumInfoAndComputing/qic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
\def\npart {II}
\def\nterm {Lent}
\def\nyear {2023}
\def\nlecturer {Dr ...}
\def\nlecturer {Dr Nilanjana Datta}
\def\ncourse {Quantum Information and Computation}

\input{../preamble-dynamic.tex}
\usepackage{qcircuit}
\usepackage{faktor}
\RequirePackage{unicode-math}

\newcommand{\transpose}{\intercal}
\DeclareMathOperator{\vecspan}{span}
\newcommand{\prob}[1]{\mathbb{P}\left({#1}\right)}
\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\author{Based on lectures by \nlecturer \ and notes by thirdsgames.co.uk}

\begin{document}
\maketitle
Expand Down
2 changes: 0 additions & 2 deletions Statistics/Statistics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
\input{../preamble-dynamic.tex}
\author{Based on lectures by \nlecturer \ and notes by thirdsgames.co.uk}

\newcommand{\prob}[1]{\mathbb{P}\left({#1}\right)}
\newcommand{\psub}[2]{\mathbb{P}_{#1}\left({#2}\right)}
\newcommand{\psubx}[1]{\psub{x}{#1}}
\newcommand{\expect}[1]{\mathbb{E}\left[{#1}\right]}
\newcommand{\esub}[2]{\mathbb{E}_{#1}\left[{#2}\right]}
\newcommand{\esubx}[1]{\esub{x}{#1}}
\newcommand{\Corr}[1]{\Corr\left({#1}\right)}
Expand Down
Binary file modified preamble.fmt
Binary file not shown.
28 changes: 27 additions & 1 deletion preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{lmodern}
% \usepackage{tgpagella}
\usepackage{ifxetex,ifluatex}

% Use upquote if available, for straight quotes in verbatim environments
Expand Down Expand Up @@ -451,4 +452,29 @@
\newcommand{\inv}{^{-1}}

\let\phi\varphi
\let\epsilon\varepsilon
\let\epsilon\varepsilon
\let \emptyset \varnothing

\usepackage{relsize}
\newcommand{\symmdiff}{\mathrel{\raisebox{1pt}{$\mathsmaller\triangle$}}}

\newcommand{\prob}[1]{\mathbb{P}\left({#1}\right)}
\newcommand{\expect}[1]{\mathbb{E}\left[{#1}\right]}

\DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
% \renewcommand{\norm}[1]{\left \lVert #1 \right \rVert}
\newcommand{\wildcard}{{}\cdot{}}
\DeclareMathOperator*{\esssup}{ess\ sup}
\newcommand{\hhat}[1]{\hat{\hat{#1}}}
\newcommand{\midd}{\,\middle|\,}
\DeclarePairedDelimiter\Brackets{[\![}{]\!]}

\newcommand{\genset}[1]{\langle{} #1 \rangle}
\DeclareMathOperator{\vecspan}{span}
\newcommand{\transpose}{\intercal}
\DeclareMathOperator{\nullity}{null}
\newcommand{\sstar}{{\star\star}}
\DeclareMathOperator{\adj}{adj}

\usepackage{faktor}

0 comments on commit a53e90d

Please sign in to comment.