This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.tex
136 lines (122 loc) · 3.71 KB
/
options.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
% Hyperref
\hypersetup{
colorlinks=true,
breaklinks=true,
linktocpage=true,
citecolor=InfDk,
linkcolor=InfDk,
urlcolor=InfRd,
filecolor=InfRd
}
% BibLaTeX
% Lastname before firstname for all bib items
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{default}{family-given}
% Remove language fields and issn for articles
\AtEveryBibitem{%
\clearlist{language}%
}
%\AtEveryBibitem{
% \ifentrytype{article}{\clearfield{issn}}{}
%}
\renewcommand*{\bibfont}{\small}
% Ignore own contributions in reference list
\DeclareBibliographyCategory{ignore}
\addtocategory{ignore}{SteinmetzPlastic2016}
\addtocategory{ignore}{DavidQuantitative2018}
\addtocategory{ignore}{SteinmetzSimple2020}
\addtocategory{ignore}{ThomasSample2020}
\addtocategory{ignore}{SteinmetzAre2022}
\addtocategory{ignore}{CowgerOpenSpecy2021}
\addtocategory{ignore}{SteinmetzData2020}
\addtocategory{ignore}{SteinmetzEnvalysis2021}
\addtocategory{ignore}{SteinmetzData2022}
% Make \fullcite look like the bibliography
\DeclareCiteCommand{\fullcite}
{\usebibmacro{prenote}}
{\usedriver
{\defcounter{maxnames}{10}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
%% Make own name bold
%\usepackage{xpatch}
%\makeatletter
%\newbibmacro*{name:bold}[2]{%
% \edef\blx@tmp@name{\expandonce#1, \expandonce#2}%
% \def\do##1{\ifdefstring{\blx@tmp@name}{##1}{\bfseries\listbreak}{}}%
% \dolistloop{\boldnames}}
%\newcommand*{\boldnames}{}
%\makeatother
%
%\xpretobibmacro{name:family}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
%\xpretobibmacro{name:given-family}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
%\xpretobibmacro{name:family-given}{\begingroup\usebibmacro{name:bold}{#1}{#2}}{}{}
%\xpretobibmacro{name:delim}{\begingroup\normalfont}{}{}
%
%\xapptobibmacro{name:family}{\endgroup}{}{}
%\xapptobibmacro{name:given-family}{\endgroup}{}{}
%\xapptobibmacro{name:family-given}{\endgroup}{}{}
%\xapptobibmacro{name:delim}{\endgroup}{}{}
%
%\forcsvlist{\listadd\boldnames}
%{{Steinmetz, Z.}, {Steinmetz, Zacharias}, {Steinmetz, Z\bibinitperiod}}
% Enumerate options
\setlist[enumerate]{label={(\arabic*)}}
% Chemfig options
\setchemfig{
atom sep=2.5em,
cram width=2.5pt, cram dash width=0.75pt, cram dash sep=2.0pt
}
\renewcommand*\printatom[1]{\ensuremath{\mathsf{#1}}}
% DOI and CAS links
\newcommand*{\doi}[1]{\textsc{doi:} \texttt{\href{https://doi.org/#1}{#1}}}
\newcommand*{\cas}[2][CAS ]{#1\href{https://webbook.nist.gov/cgi/cbook.cgi?ID=#2}{#2}}
% Units options
\sisetup{
detect-all,
separate-uncertainty,
tight-spacing = true,
multi-part-units = single,
list-units = single,
range-units = single,
range-phrase = --,
exponent-product = \cdot,
list-final-separator = {, and },
table-alignment=left}
\DeclareSIUnit[number-unit-product = ]\percent{\char`\%}
\DeclareSIUnit\Molar{\text{\textsc{m}}}
\DeclareSIUnit\mz{\text{\textit{m/z}}}
% Acro options
\acsetup{
single = 2,
list/exclude = species
}
\NewAcroTemplate[list]{thesis}
{
\acroheading
\acropreamble
\begin{description}[font=\normalfont,leftmargin=8em,style=nextline]
\acronymsmapF
{
\item [ \acrowrite {short} \acroifT {alt} { / } \acrowrite {alt} ]
\acrowrite {list}
\acroifanyT {foreign,extra} {~(}
\acrowrite {foreign}
\acroifallT {foreign,extra} {,~}
\acrowrite {extra}
\acroifanyT {foreign,extra} {)}
\acropagefill
\acropages
{ \acrotranslate {page} \nobreakspace }
{ \acrotranslate {pages} \nobreakspace }
}
{ \item \AcroRerun }
\end{description}
}
% Side- and marginnotes
\renewcommand{\thefootnote}{[\arabic{footnote}]}
\makeatletter
% Primitive input in tabular
\AddToHook{env/tabular/begin}{\let\input\@@input}
\makeatother