-
Notifications
You must be signed in to change notification settings - Fork 0
/
specStyle.sty
31 lines (26 loc) · 1.17 KB
/
specStyle.sty
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
\usepackage[utf8]{inputenc} % UTF-8 encoding
\usepackage[T1]{fontenc} % accented characters
\usepackage{lmodern} % text & mathematics fonts / additional characters
\usepackage[a4paper, total={16cm, 24cm}]{geometry}
\usepackage[german]{babel} % german language
\usepackage{graphicx} % graphics including
\usepackage{array} % extend table customisibility
\usepackage{tabularx} % tables with adjustable width
\usepackage{booktabs} % neat tables
\usepackage{siunitx} % decimal point centering
\usepackage{lastpage} % for page numbering
\usepackage{fancyhdr} % header/footer
\usepackage{hyperref} % toc hyperlinks
\usepackage{caption} % custom captions
\usepackage{titlesec} % customize section spacing
\setlength{\headheight}{14.5pt} % compensate fancyhdr
\pagestyle{fancy} % to get custom header / footer
\cfoot{\thepage\ | \pageref{LastPage}} % set footer to number pages
\renewcommand{\headrulewidth}{0mm} % comment out if you want a header line
% custom caption format
\DeclareCaptionFormat{custom}
{
\textbf{\small{#1#2}}\textit{\small #3}
}
\captionsetup{format=custom}
\titlespacing*{\section}{0mm}{2\baselineskip}{0.5ex} % custom titlespacing for tables