This repository was archived by the owner on Jul 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnotes.sty
More file actions
161 lines (149 loc) · 5.09 KB
/
notes.sty
File metadata and controls
161 lines (149 loc) · 5.09 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
\ProvidesPackage{notes}
\usepackage[bindingoffset=6mm]{geometry}
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern} % font
\RequirePackage{amsmath}
%\RequirePackage[norsk]{babel}
\RequirePackage{amssymb}
\RequirePackage{tikz}
\usetikzlibrary{decorations.markings}
\RequirePackage{pgfplots}
\usepgfplotslibrary{fillbetween}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{calc}
\usetikzlibrary{positioning}
\usetikzlibrary{snakes}
\usetikzlibrary{trees}
\RequirePackage{empheq}
\RequirePackage{amsthm}
\RequirePackage{xcolor}
\RequirePackage{physics}
\RequirePackage{bm}
\RequirePackage{esdiff}
\RequirePackage[compat=1.1.0]{tikz-feynman} % Feynman diagrams
\RequirePackage{mathtools}
\RequirePackage[colorlinks]{hyperref}
\RequirePackage{cleveref}
\RequirePackage{ulem}
\RequirePackage{chngcntr}
\RequirePackage{graphicx}
\RequirePackage{subcaption}
\RequirePackage{enumerate}
\RequirePackage{tcolorbox}
\RequirePackage{nccmath}
\newenvironment{mpmatrix}{\begin{medsize}\begin{pmatrix}}%
{\end{pmatrix}\end{medsize}}%
\RequirePackage{multicol}
\RequirePackage{simpler-wick} % Wick contractions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fancy page layout
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}
\renewcommand{\headrulewidth}{0pt}
% \RequirePackage[Lenny]{fncychap} % see available styles at https://ctan.uib.no/macros/latex/contrib/fncychap/fncychap.pdf
\RequirePackage[Glenn]{fncychap}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%
% Toc things
\usepackage{etoolbox}
% \patchcmd{\tableofcontents}{\@starttoc}{\vspace{-2cm}\@starttoc}{}{}
\RequirePackage[nottoc,numbib]{tocbibind}
\RequirePackage{emptypage} % Extremely handy. https://tex.stackexchange.com/a/161468/191229
\RequirePackage[titletoc]{appendix}
%%%%%%%%%%%%%%%%%%%v
\theoremstyle{definition}
%\newtheorem{exmp}{Example}[section]
\newtheorem{problem}{Problem}[chapter]
\counterwithin{equation}{section}
%% Diverse praktiske kommandoer %%%%%%%%%%
\newcommand{\e}{\mathrm{e}} % oppreist "e" for eksponensialer
\newcommand{\dx}{\dd{x}} % dx med riktig format
\newcommand{\dy}{\dd{y}} % dy ...
\newcommand{\dxi}{\dd{\xi}} % d\ksi ...
\newcommand{\dxis}{\dd{\xi^*}}
\newcommand{\Ha}{\mathcal{H}} % Hamiltonian
\newcommand{\Z}{\mathcal{Z}} % partisjonsfunksjon
\newcommand{\normord}[1]{:\mathrel{#1}:} % normal-ordning
\newcommand{\D}{\mathcal{D}} % Fancy D for integral-målet
\newcommand{\Sa}{\mathcal{S}} % Action
\newcommand{\J}{\mathcal{J}} % fancy J
\newcommand{\ad}{a^{\dagger}} % a-boson kreasjon
\newcommand{\bd}{b^{\dagger}} % b-boson kreasjon
\newcommand{\pd}{\varphi_\downarrow} % phi spinn ned. varphi ser mye bedre ut enn phi (objektivt)
\newcommand{\pu}{\varphi_\uparrow}
\newcommand{\nd}{n_\downarrow} % antall spinn ned
\newcommand{\nuu}{n_\uparrow} % ..opp
\newcommand{\ep}{\varepsilon} % varepsilon ser mye bedre ut enn epsilon (også objektivt)
\newcommand{\gre}{\mathcal{G}_0} % % uperturbert greens funksjon
\newcommand{\Gre}{\mathcal{G}} % greens funksjon
\newcommand{\p}{\varphi} % varphi ser mye bedre ut
\newcommand{\pdag}{\varphi^{\dagger}}
\newcommand{\cd}{c^{\dagger}}
\newcommand{\sign}{\text{sign}}
\newcommand{\s}{\Sigma} % stor Sigma. Selvenergi
\newcommand{\Fd}{F^{\dagger}}
\newcommand{\fd}{f^{\dagger}}
\newcommand{\dg}{\dagger}
\newcommand{\upm}{\begin{pmatrix}
1\\0
\end{pmatrix}} % spinor up
\newcommand{\downm}{\begin{pmatrix}
0\\1
\end{pmatrix}} % spinor down
\newcommand{\vq}{\bm{q}} % bold q
\newcommand{\vr}{\bm{r}} % bold r
\newcommand{\vR}{\bm{R}} % bold R
\newcommand{\vk}{\bm{k}} % bold k
%
\newcommand{\comma}{\mathbin{{,}}}
%BCS:
\newcommand{\te}{\tilde{\ep}}
\newcommand{\td}{\tilde{\Delta}}
%%%%%%%% Disse er for å lage fancy ting på piler i tikz-greier
\tikzset{->-/.style={decoration={
markings,
mark=at position #1 with {\arrow{>}}},postaction={decorate}}}
\tikzset{snake it/.style={decorate, decoration=snake, mark=at position #1 with {\arrow{>}}}, ,postaction={decorate}}
\tikzset{>=stealth}
\newcommand{\tikzmark}[3][]{\tikz[remember picture,baseline] \node [anchor=base,#1](#2) {$#3$};}
%%%%%%%% TODO \todo
\usepackage[colorinlistoftodos]{todonotes}
\newcommand{\suggestion}[2][]{\todo[color=green!40,#1]{#2}}
\newcommand{\missingfig}[2][]{\todo[color=blue!40,#1]{#2}}
%%%%%%%%
%%%%%%%%%%%%%%%%%%%
% color setup
\makeatletter
\def\@footnotecolor{red}
\define@key{Hyp}{footnotecolor}{%
\HyColor@HyperrefColor{#1}\@footnotecolor%
}
% Footnote hack: https://tex.stackexchange.com/a/117959/191229
\def\@footnotemark{%
\leavevmode
\ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi
\stepcounter{Hfootnote}%
\global\let\Hy@saved@currentHref\@currentHref
\hyper@makecurrent{Hfootnote}%
\global\let\Hy@footnote@currentHref\@currentHref
\global\let\@currentHref\Hy@saved@currentHref
\hyper@linkstart{footnote}{\Hy@footnote@currentHref}%
\@makefnmark
\hyper@linkend
\ifhmode\spacefactor\@x@sf\fi
\relax
}%
\makeatother
\hypersetup{
linkcolor=green!40!black,
citecolor= cyan!70!black,
footnotecolor = blue,
linktocpage=true,
urlcolor=blue}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%