-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.tex
103 lines (84 loc) · 3.02 KB
/
commands.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
\documentclass[12pt, openany]{book}
\usepackage{a4}
\usepackage{float}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage{multirow}
\usepackage[procnames]{listings}
\usepackage{color}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows}
\usepackage{physics}
\usepackage{xr}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{subcaption}
\usepackage[toc,page]{appendix}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{chemformula}
\usepackage{minted}
\usepackage{miller}
\usepackage{titlesec}
\usepackage{csquotes}
\usetikzlibrary{shapes.geometric, arrows}
% To get flow charts as eps
\usetikzlibrary{external}
\usepackage{wrapfig} % text floating around figures
\usepackage{tabularx} % to control the width of tables and columns
\usepackage{setspace} % line spacing
\usepackage{fancyhdr} % line in Header
\usepackage[linktocpage, colorlinks, citecolor=black, linkcolor=black, urlcolor=black]{hyperref} % having hyperlinks in black saves printing costs!
% Trying out new biblatex format
% Specifying how the references should be rendered
\usepackage[backend=bibtex8, style=phys, maxnames=12, articletitle=false, biblabel=brackets, chaptertitle=false, pageranges=false]{biblatex}
\hypersetup{pdftitle = {<title of your thesis>},
pdfauthor = {<your name>}, pdfkeywords = {<some>, <good>, <keywords>}}
\pagenumbering{arabic} %
\setlength{\parindent}{0.4cm}
\pagestyle{fancy}
%code mode
\definecolor{keywords}{RGB}{255,0,90}
\definecolor{comments}{RGB}{0,0,113}
\definecolor{red}{RGB}{160,0,0}
\definecolor{green}{RGB}{0,150,0}
\lstset{language=Python,
basicstyle=\ttfamily\small,
keywordstyle=\color{keywords},
commentstyle=\color{comments},
stringstyle=\color{red},
showstringspaces=false,
identifierstyle=\color{blue},
rulecolor=\color{black},
frame=single,
tabsize=2,
procnamekeys={def,class}}
% global change of font in tables
\newenvironment{tabschrift}{\begin{footnotesize}}{\end{footnotesize}}
\setlength{\evensidemargin}{0.0cm} %
\setlength{\oddsidemargin}{0.5cm} %
\setlength{\textwidth}{15.3cm} %
\setlength{\hoffset}{0cm} % = 1 inch + number
% Chapter in Header in lowercase
\renewcommand{\chaptermark}[1]{
\markboth{\chaptername \ \thechapter.\ #1}{}} %
\fancyhead{} \fancyhead[LE,RO]{\leftmark} %
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[CE,CO]{\thepage}
\renewcommand{\headrulewidth}{0pt}}
\fancyfoot{} \fancyfoot[CE,CO]{\thepage} %
\setlength{\headwidth}{\textwidth} % line in header as wide as text
\setcounter{topnumber}{3}% default 2
\setcounter{bottomnumber}{3}% default 1
\setcounter{totalnumber}{6} % default 3
\renewcommand{\textfraction}{0.05} %default 0.2
\renewcommand{\topfraction}{0.95} % default 0.7
\renewcommand{\bottomfraction}{0.95} %default 0.3
\renewcommand{\floatpagefraction}{0.75} % default 0.5
% New command definitions to be used in the latex files
\newcommand{\kbT}{k_{\mathrm{B}} T}
\newcommand{\figpath}{figures}
\newcommand{\etal}{\textit{et al.}}
\newcommand{\abinitio}{\textit{ab initio}}