forked from TIBHannover/semantic-glossar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
in-header.tex
60 lines (43 loc) · 1.58 KB
/
in-header.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
\usepackage{hyphenat} % auto hyphenation
\usepackage{graphicx} % colors
\usepackage{wallpaper} % for the background image on title page
\usepackage{geometry} % for margins
\usepackage{xcolor,colortbl} % table colors
\usepackage{ragged2e} % text alignment
\usepackage[most]{tcolorbox} % boxes behind cover page text
\usepackage{setspace} % line spacing
\usepackage{parskip} % paragraph spacing
\usepackage{fvextra} % code hyphenation / styling
\usepackage{fontspec} % mono font
\usepackage[T1]{fontenc}
\usepackage{inconsolata}
\setmonofont{inconsolata} % font for code bits
\setmainfont{MyriadPro}[
Path=./fonts/,
Extension = .ttf,
UprightFont=*-SemiCn,
BoldFont=*-BoldSemiCn,
ItalicFont=*-SemiCnIt,
BoldItalicFont=*-BoldSemiCnIt
]
\onehalfspacing % line spacing
\setlength{\parskip}{1.5em}
\setlength{\parindent}{0pt}
\definecolor{cosmoblue}{RGB}{39,128,227}
\definecolor{thkoelnred}{RGB}{201,12,15}
\definecolor{thkoelnorange}{RGB}{234,91,12}
\definecolor{thkoelnviolet}{RGB}{184,37,133}
\definecolor{cosmoblack}{RGB}{55,58,60}
\usepackage{titlesec} % title and section spacing
% \titlespacing*{<command>}{<left>}{<before-sep>}{<after-sep>}
\titlespacing*{\section}{0pt}{1em}{0.1em}
\titlespacing*{\subsection}{0pt}{1em}{0.1em}
% Define a new command to apply single spacing to bold text
\let\oldtextbf\textbf
\renewcommand{\textbf}[1]{%
\setstretch{1.0}% Set line spacing to single
\parskip=10pt % Set paragraph spacing (adjust as needed)
\oldtextbf{#1}%
\parskip=0pt % Reset paragraph spacing to default after bold text
}
\arrayrulecolor{thkoelnviolet} % table color