-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
58 lines (49 loc) · 1.14 KB
/
template.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
% Template file for styling documents
\usepackage[a4paper, margin=2cm]{geometry}
% Base packages
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{svg}
\usepackage{placeins}
% Don't number titles
\setcounter{secnumdepth}{0}
% Show page numbers
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\cfoot{\thepage\ of \pageref{LastPage}}
% Avoid hyphenation
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
% Page layout
\setlength{\parindent}{0mm}
\setlength{\parskip}{2.5mm}
\setlength{\textwidth}{16cm}
\setlength{\textheight}{24.5cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\topmargin}{-1.25cm}
% Font
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{avant}
\usepackage{mathptmx}
% Title
\usepackage{titlesec}
\titleformat{\section}
{\sffamily\large\bfseries}
{\thesection}
{16pt}
{\large}
\titlespacing*{\section}{0mm}{7mm}{0mm}
\titleformat{\subsection}
{\sffamily\normalsize\bfseries}
{\thesubsection}
{16pt}
{\normalsize}
\titlespacing*{\subsection}{0mm}{5mm}{0mm}
% hyperref must be last package loaded to ensure hyperlinks work
% correctly
\usepackage{hyperref}