-
Notifications
You must be signed in to change notification settings - Fork 0
/
basic-text-settings.tex
266 lines (227 loc) · 7.53 KB
/
basic-text-settings.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
%% TimmLiTeX
%% Version: v0.9.1
%% Last modified: 2024-02-16 09:32:26
% Do not change this file!
%% PDFLATEX SETTINGS
%==============================
% Font & Encoding
%------------------------------
%% Basic font
% \usepackage{libertine} % libertine tends to cause problems, e.g. when using tipa
% \usepackage[libertine]{newtxmath}
\usepackage{times}
%% Basic font for specific classes
\makeatletter
\@ifclassloaded{beamer}{
\usepackage{libertine} % libertine tends to cause problems, e.g. when using tipa
\usepackage[libertine]{newtxmath}}{}
\@ifclassloaded{tikzposter}{
\usepackage{DejaVuSans}
\renewcommand*{\familydefault}{\sfdefault}}{}
\makeatother
%% Monospaced font
\usepackage[scaled=0.8]{beramono}
%% Micro-typographic aspects of the fonts
\usepackage{microtype}
%% Output encoding: mapping of character codes to glyphs
\usepackage[T1]{fontenc}
%% Input encoding: the encoding of characters in a source file
\usepackage[utf8]{inputenc}% compatible with BibLaTeX
% \usepackage{ucs}\usepackage[utf8x]{inputenc}% incompabtible with BibLaTeX
%% Additional symbols
\usepackage{latexsym,amsmath,amssymb,wasysym}
\usepackage{marvosym} % for thunderbolt symbol
\usepackage{ulem} % highlight text with lines
\normalem % do not overwrite \emph
\usepackage{url}
\urlstyle{tt} % tt,rm,sf,same
\usepackage{tipa} % for phonetic symbols; has to appear before fontspec (FIXME: really?)
%% Language
\usepackage[german,english]{babel} % the last language in the options is loaded; the other one can be chosen with \selectlanguage
\usepackage{iflang} % for checking the current language name
%==============================
% Miscellaneous
%------------------------------
%% Text columns
\usepackage{multicol}
%% Graphics
\usepackage{graphics}
%% Tables
% \usepackage{arydshln} % for dashed horizontal lines in tables (incompatible with avm)
\usepackage{multirow}
\usepackage{colortbl}
%% Blindtext
\usepackage{lipsum}
%==============================
% BibLaTeX settings
%------------------------------
\newcommand{\mycitestyle}{muss}
\newcommand{\mybibstyle}{muss}
\makeatletter
\@ifclassloaded{beamer}{\renewcommand{\mycitestyle}{numeric-comp}}{}
\@ifclassloaded{tikzposter}{\renewcommand{\mycitestyle}{numeric-comp}}{}
\makeatother
\usepackage[
bibstyle=\mybibstyle,
citestyle=\mycitestyle,
%% The remaining options are set in muss.bbx.
% natbib=true,
% refsection=chapter,
% maxbibnames=99,
% isbn=false,
% doi=false,
% eprint=false,
% backend=biber,
% sorting=ydnt, % sort in descending chronological order
% indexing=cite,
% labelnumber, % for numeric bibliography in beamer
% toc=bib % make bibliography appear in toc, incompatible with beamer
]{biblatex}
%% The bibliography file is specified like this
\addbibresource[datatype=bibtex]{references.bib}
%% Command for inserting bibliography here
\newcommand{\insertBib}{
\printbibliography[
% notkeyword=this
]
}
%% Compat definitions to make available BibTeX macros in BibLaTeX
% \let\citealt=\cite
% \let\cite=\textcite
% \let\citep=\parencite
% \let\citet=\cite
% \newcommand{\citeauthoryear}[1]{\citeauthor{#1} (\citeyear{#1})}
% \newcommand{\citealtauthoryear}[1]{\citeauthor{#1} \citeyear{#1}}
% Beamer settings
%-----------------
\makeatletter
\@ifclassloaded{beamer}{
%% Print ": " before postnote (numeric-comp uses comma)
\renewcommand*{\postnotedelim}{\addcolon\space}
%% Replace icons with numbers in bibliography
\setbeamertemplate{bibliography item}{[\thefield{labelnumber}]}
%% New command \footshortcite
\DeclareCiteCommand{\footshortcite}[\mkbibfootnote]
{\usebibmacro{prenote}%
\printnames[only-last-name]{author}%
\setunit{\adddot\space}%
\printfield{year}%
\setunit{\adddot\space}%
\printfield{title}}
{}
{\multicitedelim}
{\renewcommand*{\postnotedelim}{\adddot\space}%
\usebibmacro{postnote}}
\DeclareNameFormat{only-last-name}{%
\printtext{\namepartfamily}%
\ifgiveninits
{\addcomma\addspace\namepartgiveni}
{}%
\usebibmacro{name:andothers}}
%% Taken from MUSS v0.4
\DeclareCiteCommand{\fullcite}
{\defcounter{maxnames}{\blx@maxbibnames}% show all names
\usebibmacro{prenote}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
%% Taken from numberic-comp.cbx with additions ...
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{\color{gray}% added color
\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\let\multicitesubentrydelim=\supercitesubentrydelim
\let\multiciterangedelim=\superciterangedelim
\let\multicitesubentryrangedelim=\supercitesubentryrangedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}%
\bibopenbracket% added bracket
}
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}%
\bibclosebracket% added bracket
}
}{}
\makeatother\makeatother
% Tikzposter settings
%-----------------
\makeatletter
\@ifclassloaded{tikzposter}{
\DeclareFieldFormat{labelnumberwidth}{#1}
\defbibenvironment{bibliography}
{\footnotesize\noindent}
{\unspace}
{}
\renewbibmacro*{begentry}{%
\textbf{\color{HHUblue}%
\printtext[labelnumberwidth]{%
[\printfield{prefixnumber}%
\printfield{labelnumber}]}%
\space
% \setunit{\addspace}
}}
\renewcommand*{\finentrypunct}{\addperiod\space}
\DeclareCiteCommand{\supercite}[\mkbibsuperscript]
{\color{gray} % added color
\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\iffieldundef{prenote}
{}
{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}
{}
{\BibliographyWarning{Ignoring postnote argument}}%
\bibopenbracket}%
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}\bibclosebracket}
\DeclareCiteCommand{\citeauthor} % from sp-authoryear-comp.cbx; to add hyperref link
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\ifciteindex
{\indexnames{labelname}}
{}%
\printtext[bibhyperref]{\printnames{labelname}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\citeyear} % from sp-authoryear-comp.cbx; to add hyperref link
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
{\printfield[bibhyperref]{year}}
{\multicitedelim}
{\usebibmacro{postnote}}
}{}
\makeatother
%==============================
% Hyperref settings
%------------------------------
\usepackage[bookmarks=true,bookmarksopen=true,%
hyperindex=true,% Makes the page numbers of index entries into hyper-links.
breaklinks=true,% Allow links to break over lines.
draft=false,% All hypertext options are turned off.
plainpages=false,% When true, forces page anchors to be named by the Arabic form of the page number.
pdfauthor={},% Hide author name.
pdfkeywords={},%
colorlinks=false,% Do not color the text of links and anchors.
pdfborder={0 0 1},% The style of box around links.
]{hyperref}
\IfLanguageName{english}{
\renewcommand{\chapterautorefname}{Chapter}%
\renewcommand{\figureautorefname}{Figure}%
\renewcommand{\tableautorefname}{Table}%
\renewcommand{\sectionautorefname}{Section}%
\renewcommand{\subsectionautorefname}{Section}%
\renewcommand{\subsubsectionautorefname}{Section}%
\renewcommand{\Hfootnoteautorefname}{Footnote}%
}{}