-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathheader.tex
123 lines (108 loc) · 3.17 KB
/
header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
\ifx \nauthor\undefined
\def\nauthor{Bhavik Mehta}
\else
\fi
\author{Based on lectures by \nlecturer \\\small Notes taken by \nauthor}
\date{\nterm\ \nyear}
\ifdefined\draft
\title{Part \npart\ -- \ncourse\ (\draft)}
\else
\title{Part \npart\ -- \ncourse}
\fi
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{enumerate}
\usepackage{mathtools}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{centernot}
\usepackage{float}
\usepackage{braket}
\usepackage{marginnote}
\usepackage[hypcap=true]{caption}
\usepackage[shortlabels]{enumitem}
\usepackage[pdftex,
colorlinks=true,
linkcolor=lblue,
pdfauthor={\nauthor},
pdfsubject={Cambridge Maths Notes: Part \npart\ - \ncourse},
pdftitle={\ncourse - Part \npart},
pdfkeywords={Cambridge Mathematics Maths Math \npart\ \nterm\ \nyear\ \ncourse}]{hyperref}
\usepackage[capitalise,nameinlink,noabbrev]{cleveref}
\usepackage{nameref}
\usepackage[margin=1.5in,a4paper]{geometry}
\reversemarginpar
\newcommand{\lecnum}[1]{\leavevmode\marginnote{\emph{Lecture #1}}\ignorespaces}
\newcounter{lecturenumber}
\newcommand{\newlec}{\stepcounter{lecturenumber}\lecnum{\arabic{lecturenumber}}}
% Theorems
\theoremstyle{definition}
\newtheorem*{aim}{Aim}
\newtheorem*{axiom}{Axiom}
\newtheorem*{claim}{Claim}
\newtheorem*{cor}{Corollary}
\newtheorem*{conjecture}{Conjecture}
\newtheorem*{defi}{Definition}
\newtheorem*{eg}{Example}
\newtheorem*{ex}{Exercise}
\newtheorem*{fact}{Fact}
\newtheorem*{idea}{Idea}
\newtheorem*{law}{Law}
\newtheorem*{lemma}{Lemma}
\newtheorem*{notation}{Notation}
\newtheorem*{prop}{Proposition}
\newtheorem*{question}{Question}
\newtheorem*{rrule}{Rule}
\newtheorem*{thm}{Theorem}
\newtheorem*{assumption}{Assumption}
\newtheorem*{remark}{Remark}
\newtheorem*{warning}{Warning}
\newtheorem*{exercise}{Exercise}
\newtheorem{nthm}{Theorem}[section]
\newtheorem{nlemma}[nthm]{Lemma}
\newtheorem{nprop}[nthm]{Proposition}
\newtheorem{ncor}[nthm]{Corollary}
\newtheorem{ndef}[nthm]{Definition}
% Special sets
\newcommand{\C}{\mathbb{C}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\abs}[1]{\left\lvert #1\right\rvert}
\newcommand{\norm}[1]{\left\lVert #1\right\rVert}
\renewcommand{\vec}[1]{\boldsymbol{\mathbf{#1}}}
\let\Im\relax
\let\Re\relax
\DeclareMathOperator{\Im}{Im}
\DeclareMathOperator{\Re}{Re}
\DeclareMathOperator{\re}{Re}
\DeclareMathOperator{\id}{id}
\definecolor{lblue}{rgb}{0., 0.05, 0.6}
\definecolor{mblue}{rgb}{0.2, 0.3, 0.8}
\definecolor{morange}{rgb}{1, 0.5, 0}
\definecolor{mgreen}{rgb}{0.1, 0.4, 0.2}
\definecolor{mred}{rgb}{0.5, 0, 0}
\colorlet{bred}{red}
\colorlet{bblue}{Cyan!50!blue}
\colorlet{byellow}{yellow}
\colorlet{bgreen}{YellowGreen!50!Green}
\colorlet{borange}{red!20!yellow}
\colorlet{bpurple}{violet}
\let\oldemptyset\emptyset
\let\emptyset\varnothing
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[R]{\href{b-mehta.github.io/maths-notes}{\color{lblue}{Updated online}}}
\fancyfoot[C]{\thepage}
\ifdefined\draft
\fancyfoot[L]{\emph{\draft}}
\else
\fi
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0.2pt}