/
preamble.tex
29 lines (22 loc) · 908 Bytes
/
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
\usepackage{booktabs}
%% A4 paper
\usepackage[a4paper]{geometry}
%% Lithuanian language
\usepackage[lithuanian]{babel}
\usepackage{csquotes}
\DeclareQuoteAlias{german}{lithuanian}
\MakeOuterQuote{"}
%% Roman chapter numbers
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
%% Fix width of roman chapter numbers in TOC
\usepackage{tocbasic}
\DeclareTOCStyleEntry[dynnumwidth]{tocline}{chapter}
%% Custom chapter style
\usepackage{titlesec}
\titleformat{\chapter}[display]{\Huge\bfseries}{\thechapter\ \chaptername}{0.5ex}{\huge\bfseries\raggedright}
%% Fix running heads
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter\ \chaptername.\ #1}}{}}