This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
81 lines (64 loc) · 2.95 KB
/
preamble.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
% !TEX root = thesis.tex
% Fixes things like bold font.
\usepackage[tuenc]{fontspec}
% Recommended by babel.
\usepackage{csquotes}
% Use siunitx to write out units and quantities, use special formatting for the units.
\usepackage{siunitx}
\sisetup{separate-uncertainty = true, multi-part-units = single, inter-unit-product = \ensuremath { { } \cdot { } }, range-units = single, list-units = single, exponent-product=\cdot}
\DeclareSIUnit\fluxquantum{\text{\ensuremath{\Phi_0}}}
% Setup bibliography (instead of relying on the way lion-msc does it using natbib).
\usepackage[backend=biber, style=phys, biblabel=brackets]{biblatex}
\addbibresource{sources.bib}
% Use circuitikz for drawing circuits.
\usepackage{circuitikz}
% Define a symbol for Josephson junctions based on https://github.com/circuitikz/circuitikz/blob/ff0ccf13b25d9fd73fb8715fb3124018f0bce1e2/tex/pgfcircbipoles.tex#L6915-L6942.
\makeatletter
\pgfcircdeclarebipolescaled{misc}
{}
{\ctikzvalof{bipoles/barrier/height}}
{josephsonjunction}
{\ctikzvalof{bipoles/barrier/height}}
{\ctikzvalof{bipoles/barrier/width}}
{
% this is set with normal wire linewidth
\pgfpathmoveto{\pgfpoint{\pgf@circ@res@left}{0pt}}
\pgfpathlineto{\pgfpoint{0*\pgf@circ@res@left}{0pt}}
\pgfpathmoveto{\pgfpoint{\pgf@circ@res@right}{0pt}}
\pgfpathlineto{\pgfpoint{0*\pgf@circ@res@right}{0pt}}
\pgfusepath{draw}
% do the cross part
\pgf@circ@setlinewidth{bipoles}{\pgfstartlinewidth}
\pgfpathmoveto{\pgfpoint{0.35*\pgf@circ@res@left}{0.35*\pgf@circ@res@up}}
\pgfpathlineto{\pgfpoint{0.35*\pgf@circ@res@right}{0.35*\pgf@circ@res@down}}
\pgfpathmoveto{\pgfpoint{0.35*\pgf@circ@res@left}{0.35*\pgf@circ@res@down}}
\pgfpathlineto{\pgfpoint{0.35*\pgf@circ@res@right}{0.35*\pgf@circ@res@up}}
\pgfusepath{draw}
}
\def\pgf@circ@josephsonjunction@path#1{\pgf@circ@bipole@path{josephsonjunction}{#1}}
\compattikzset{josephsonjunction/.style = {\circuitikzbasekey, /tikz/to path=\pgf@circ@josephsonjunction@path, label=#1}}
\makeatother
% Let footnotes use numbers instead of symbols.
\renewcommand{\thefootnote}{\arabic{footnote}}
% For double closed integrals among others.
\usepackage{esint}
% Diameter symbol.
\usepackage{wasysym}
% For chemical formulas.
\usepackage[version=4]{mhchem}
% Nicer tables.
\usepackage{booktabs}
% Used for including PGF files. Use the external package to avoid memory issues and increase compilation speed.
\usepackage{import}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{external}
\tikzexternalize
% Used for subfigures/captions.
\usepackage{subcaption}
% Used for debugging such as printing the value of \textwidth (\printinunitsof{in}\prntlen{\textwidth})
\usepackage{layouts}
% Use whitespace instead of indent for new paragraphs.
\usepackage[parfill]{parskip}
% Used for inputting table contents (see https://tex.stackexchange.com/questions/144625/misplaced-noalign-error-in-table-but-only-when-using-include).
\makeatletter\let\expandableinput\@@input\makeatother