-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreamble.tex
309 lines (254 loc) · 7.67 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
% !TeX program = lualatex
% !TeX TXS-program:bibliography = txs:///biber
% ========
% Preamble
% ========
% -----------------------------
% Font, theme, and Beamerposter
% -----------------------------
\usepackage[orientation=portrait, size=a0, scale=1.1]{beamerposter}
\usetheme{BCHNottingham}
\usecolortheme{BCHNottingham}
\newcommand\bmmax{2}
\usepackage{bm}
% ---------
% Chemistry
% ---------
\usepackage[version=4]{mhchem} % Further chemistry typesetting support
% ----------------------
% Scientific typesetting
% ----------------------
\usepackage{siunitx}
\AtBeginDocument{\sisetup{math-rm=\symup, text-rm=\rmfamily}}
\DeclareSIUnit{\atomicunits}{a.u.}
% ----------------
% Micro-typography
% ----------------
\usepackage[
activate={true,nocompatibility},%
final,%
tracking=true,%
factor=1100,%
stretch=10,%
shrink=10%
]{microtype}
\SetTracking{encoding={*}, shape=sc}{40} % Reduce spacing between sc characters
\microtypecontext{spacing=nonfrench}
% -------------
% Maths support
% -------------
\usepackage{amsmath, amssymb, mathtools, mathrsfs, braket, amsthm, interval} % packages for further maths support
\usepackage{mleftright} %loading package for ensuring correct spacing before brackets
\mleftright
% ------
% Tables
% ------
\usepackage{booktabs, multirow, tabularx}
\usepackage{lscape}
%% -------------
%% In-line lists
%% -------------
%\newenvironment{inlineitemize}{%
% \let\par\relax%
% \def\item{\usebeamertemplate{itemize item}\hspace{1mm}}
% \leavevmode%
%}{}
% -----------------
% Cross-referencing
% -----------------
\usepackage[capitalise, noabbrev]{cleveref} %loading package for enhanced cross-referencing; cleverref must be loaded after hyperref
% ---------------------
% Diagrams and captions
% ---------------------
\usepackage{graphicx}
\usepackage{caption, subcaption}
\captionsetup{justification=centering}
% pgfplots
%% We need the external library to use the \tikzsetexternalprefix variable
%% in all cases. However, we only need version compatibility and the rest of
%% the libraries if we actually need to compile pikz diagrams.
\usepackage{pgfplots} % pgfplots loads tikz automatically
\usetikzlibrary{external}
\tikzexternalize
% \tikzexcmd is defined in the compilation call from the command line. See the Makefile.
\newif\iftikzex
\ifdefined\notikzex
\tikzexfalse
\else
\tikzextrue
\fi
\iftikzex
\pgfplotsset{compat=1.17}
\usetikzlibrary{%
calc,%
luamath,%
positioning,%
pgfplots.groupplots,%
arrows.meta,%
shapes.misc,%
decorations.markings,%
}
\usepgfplotslibrary{%
groupplots,%
fillbetween,%
}
\pgfplotscreateplotcyclelist{coloronly}{%
{red},%
{Blue},%
{black!60!green},%
{black!20!orange},%
{green!30!brown},%
{Blue!40!red},%
{black!60!Blue},%
{black!40!yellow},%
{red!50!pink},%
{green!70!Blue},%
}
\fi
% Tikzexternalize
\makeatletter
\newcommand*{\useexternalfile}[4]{
\iftikzex
\tikzsetnextfilename{tikzoutput/#4-output}
\scalebox{#1}{\input{\tikzexternal@filenameprefix#4.tikz.tex}}
\else
\includegraphics[scale=#1, trim=#2 0 #3 0]{\tikzexternal@filenameprefix tikzoutput/#4-output.pdf}
\fi
}
\makeatother
\tikzsetexternalprefix{./tikz/}
% -------
% Lengths
% -------
% For N columns, choose \sepwidth and \colwidth such that
% (N+1)*\sepwidth + N*\colwidth = \paperwidth
\newlength{\sepwidth}
\newlength{\colwidth}
\setlength{\sepwidth}{0.0236\paperwidth}
\setlength{\colwidth}{0.4646\paperwidth}
\newcommand{\separatorcolumn}{\begin{column}{\sepwidth}\end{column}}
\newcommand{\halfseparatorcolumn}{\begin{column}{.5\sepwidth}\end{column}}
% ----------------
% Language support
% ----------------
% polyglossia requires fontspec
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
% Context-sensitive quotation marks
\usepackage[english=british]{csquotes}
% ------------
% Bibliography
% ------------
\usepackage[%
sorting=none,%
style=nature,%
articletitle=false,%
autocite=superscript,%
dateabbrev=false,%
url=false,%
isbn=false,%
backend=biber%
]{biblatex}
\addbibresource{bib/watoc2020poster.bib}
% ---------------
% List of symbols
% ---------------
% Load the glossaries package (after hyperref)
\usepackage[%
symbols,% create list of symbols
abbreviations,% create list of abbreviations
nomain,%
nonumberlist,%
nogroupskip,%
nopostdot%
]{glossaries-extra}
% Create an "ignored" list of symbols that will not be printed out
\newglossary[glignoredl]{ignored}{glignored}{glignoredin}{Ignored Glossary}
% Hyphenated long forms
\glsaddkey
{hyphenated} % new key
{\relax} % default value if "hyphenated" isn't used in \newglossaryentry
{\glsentryhyphx} % analogous to \glsentrytext
{\Glsentryhyphx} % analogous to \Glsentrytext
{\glshyphx} % analogous to \glstext
{\Glshyphx} % analogous to \Glstext
{\GLShyphx} % analogous to \GLStext
\newcommand{\GENglspostlinkhook}{%
\ifglsused{\glslabel}{}{ (\glsentryshort{\glslabel})}\glsunset \glslabel}
\makeatletter
\newcommand\metadef[1]{%
\expandafter\newcommand\csname gls#1\endcsname{%
\@ifstar{\csname sgls#1\endcsname}{\csname ngls#1\endcsname}%
}
\@namedef{sgls#1}##1{{\let\glspostlinkhook \GENglspostlinkhook\expandafter\csname gls#1x\endcsname*{##1}}}%
\@namedef{ngls#1}##1{{\let\glspostlinkhook \GENglspostlinkhook\expandafter\csname gls#1x\endcsname{##1}}}%
\expandafter\newcommand\csname Gls#1\endcsname{%
\@ifstar{\csname sGls#1\endcsname}{\csname nGls#1\endcsname}%
}
\@namedef{sGls#1}##1{{\let\glspostlinkhook \GENglspostlinkhook\expandafter\csname Gls#1x\endcsname*{##1}}}%
\@namedef{nGls#1}##1{{\let\glspostlinkhook \GENglspostlinkhook\expandafter\csname Gls#1x\endcsname{##1}}}%
\expandafter\newcommand\csname GLS#1\endcsname{%
\@ifstar{\csname sGLS#1\endcsname}{\csname nGLS#1\endcsname}%
}
\@namedef{sGLS#1}##1{{\let\glspostlinkhook \GENglspostlinkhook\expandafter\csname GLS#1x\endcsname*{##1}}}%
\@namedef{nGLS#1}##1{{\let\glspostlinkhook \GENglspostlinkhook\expandafter\csname GLS#1x\endcsname{##1}}}%
}
\makeatother
\metadef{hyph}
\makeglossaries
\loadglsentries{symbols/symbols}
\loadglsentries{symbols/acronyms}
% -----
% Boxes
% -----
\usepackage[most]{tcolorbox}
\usepackage{varwidth}
\tcbsetforeverylayer{shield externalize}
% \begin{highlightbox}[<options>]{colour}{title}
% box content
% \end{highlightbox}
\newtcolorbox{highlightbox}[4][]{%
enhanced,
size=normal,
overlay={%
\node[anchor=north east, outer sep=-4pt, #2!80!white, scale=1] at ($(frame.north east) + (0.6ex, 0)$) {#4};
},
colframe=#2,
colback=#2!10!white,
colbacktitle=#2!25!yellow!10!white,
fonttitle=\Raleway\bfseries\large,
coltitle=#2!60!black,
fontupper=\normalsize,
boxed title size=standard,
attach boxed title to top center=
{yshift=-0.25mm-\tcboxedtitleheight/2, yshifttext=-5mm-\tcboxedtitleheight/2},
boxed title style={%
boxrule=0.5mm,
frame code={%
\path[tcb fill frame] ([xshift=-4mm]frame.west)
-- (frame.north west) -- (frame.north east) -- ([xshift=4mm]frame.east)
-- (frame.south east) -- (frame.south west) -- cycle;%
},
interior code={%
\path[tcb fill interior] ([xshift=-2mm]interior.west)
-- (interior.north west) -- (interior.north east)
-- ([xshift=2mm]interior.east) -- (interior.south east) -- (interior.south west)
-- cycle;%
}%
},
title=#3,
#1
}
% ---------------
% Special symbols
% ---------------
% Operators
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\spn}{span}
\DeclareMathOperator{\Ln}{Ln}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\Sym}{Sym}
\DeclareMathOperator{\Arg}{Arg}
\DeclareMathOperator*{\argmin}{argmin}