-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
115 lines (89 loc) · 2.46 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
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
%!TEX root = main.tex
%Packages
%Aussie language
\usepackage[australian]{babel}
%text st
\usepackage{hyperref}
\usepackage{comment}
\usepackage{multicol}
%bibliography
%\usepackage[autostyle]{csquotes} %for apa
\usepackage[backend=biber,style=ieee]{biblatex}
%\DeclareLanguageMapping{american}{american-apa} %for apa
\bibliography{biblio}
\usepackage{verbatim}
%math symbols
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage[separate-uncertainty=true]{siunitx}
\usepackage{cancel}
%\usepackage{chemformula}
\usepackage{physics}
% Importing files
\usepackage{esvect}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{pdfpages}
%figures
%\usepackage{chemfig}
\usepackage[american,siunitx]{circuitikz}
\usetikzlibrary{calc}
\usepackage{tikz}
\usepackage{pgfplots}
%coding
\usepackage{minted}
\usepackage{xcolor}
\usepackage{colortbl}
%Definitions
%set graphics path for default illustrator export path.
\graphicspath{{PDF/}}
%spelling litre properly
\let\oldlitre\litre
\DeclareSIUnit{\litre}{\liter}
%spelling itemise properly
\newenvironment{itemise}
{\begin{itemize}}
{\end{itemize}}
%Conditions env for equations
\usepackage{array}
\newenvironment{conditions}[1][where:]
{#1 \begin{tabular}[t]{>{$}l<{$} @{${}={}$} l}}
{\end{tabular}\\[\belowdisplayskip]}
\newenvironment{conditions*}
{\par\vspace{\abovedisplayskip}\noindent
\tabularx{\columnwidth}{>{$}l<{$} @{${}={}$} >{\raggedright\arraybackslash}X}}
{\endtabularx\par\vspace{\belowdisplayskip}}
% No indent on new paragraphs
%\setlength{\parindent}{0mm}
%\setlength{\parskip}{0.2cm}
%minted options
\definecolor{monokaibg}{HTML}{272822}
\usemintedstyle{monokai}
\setminted{tabsize=4, obeytabs, bgcolor=monokaibg, linenos, breaklines}
%Count of words
\immediate\write18{texcount -inc
-sum main.tex > /tmp/wordcount.tex}
\newcommand\wordcount{
\verbatiminput{/tmp/wordcount.tex}}
%change margins
\usepackage[margin=2.54cm]{geometry}
%bold vector command
\let\vecl\vec
\renewcommand{\vec}[1]{\mathbf{#1}}
%bold hat vectors
\let\oldhat\hat
\renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}}
%element of
\newcommand{\ele}{\in \!\,}
%set of real numbers R
\newcommand{\R}{\mathbb{R}}
%imaginary j
\renewcommand{\j}{\mathrm{j}}
%sinc function
\DeclareMathOperator{\sinc}{sinc}
%rect function
\DeclareMathOperator{\rect}{rect}
% Tag equation with name
\newcommand{\eqname}[1]{\tag*{#1}}