-
Notifications
You must be signed in to change notification settings - Fork 0
/
tikz-header.tex
81 lines (65 loc) · 1.65 KB
/
tikz-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
\documentclass{standalone}
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX} % -- becomes en-dash etc.
\setmonofont{Fira Mono}[Scale=MatchLowercase]
\usepackage{tikz}
\usetikzlibrary{
calc,
patterns,
quotes,
tikzmark,
angles,
decorations.markings,
decorations.pathmorphing,
decorations.pathreplacing,
fadings,
shapes,
positioning
}
\tikzset{fontscale/.style = {font=\relsize{#1}}}
\usepackage{pgfplots}
\usepackage{tikz-feynman}
% math
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{xfrac}
\usepackage[
mathrm=sym, % use math font for mathrm, not text font
math-style=ISO,
bold-style=ISO,
sans-style=italic,
nabla=upright,
partial=upright,
warnings-off={
mathtools-colon,
mathtools-overbracket,
},
]{unicode-math}
\usepackage[
separate-uncertainty=true,
per-mode=symbol-or-fraction,
]{siunitx}
\sisetup{math-micro=\text{µ},text-micro=µ}
\usepackage{mhchem}
% new commands
\newcommand{\code}[2]{%
\texttt{\textcolor{#1}{\detokenize{#2}}}%
}
\newcommand{\ubeta}{\symup{\beta}}
\newcommand{\ugamma}{\symup{\gamma}}
\usepackage{xcolor}
% define your colors here
\xdefinecolor{tugreen}{RGB}{132, 184, 25}
\xdefinecolor{tulightgreen}{HTML}{99b560}
\xdefinecolor{darkmode}{HTML}{3a3d41}
\colorlet{tulight}{tugreen!20!white}
\colorlet{tudark}{tugreen!80!black}
\xdefinecolor{tuorange}{RGB}{227, 105, 19}
\xdefinecolor{tuyellow}{RGB}{242, 189, 0}
\xdefinecolor{tucitron}{RGB}{249, 219, 0}
\xdefinecolor{tublue}{RGB}{25, 132, 184}
\colorlet{tublight}{tublue!20!white}
\colorlet{tubdark}{tublue!60!black}
\colorlet{lightgray}{darkgray!70!white}
\colorlet{lightergray}{darkgray!50!white}