-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.tex
95 lines (76 loc) · 2.91 KB
/
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
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
%!TEX root = main.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Configuration options
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{floatflt} % allow floating figures
\usepackage{pdfsync} % allow easy editing with pdf files
%\usepackage{mathptmx} % times font
\usepackage[bookmarks=true, pdfpagelabels=true, colorlinks=true, linkcolor=black, urlcolor=black, citecolor=blue, anchorcolor=blue]{hyperref}
% Pour le texte en français
% \usepackage[latin1]{inputenc}
\usepackage[cyr]{aeguill}
%\usepackage[francais]{babel}
\usepackage{booktabs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,bm} % math options
\usepackage{graphics,xcolor} % graphic and colors
\usepackage{times}
\usepackage{graphicx}
\usepackage{emptypage}
\usepackage{cite}
\usepackage[export]{adjustbox}
% \usepackage{showframe}% http://ctan.org/pkg/showframe
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
% make the font of the captions smaller
\usepackage[font=small,labelfont=bf]{caption}
% avoid widow and club
\widowpenalty=10000
\clubpenalty=10000
\raggedbottom
% Format for UCL publications
\usepackage[a4paper,total={12cm,20cm},centering,headsep=.5cm]{geometry}
% \setlength{\parskip}{1.6ex plus 0.5ex minus 0.2ex}
\setlength{\parindent}{0.5cm}
\renewcommand{\baselinestretch}{1.1}
%%% Fancy Header and Footer Style Options
\usepackage{fancyhdr}
\pagestyle{fancy} \fancyfoot{}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\fancyhead[LE,RO]{\small\thepage}
\fancyhead[RE]{\sl\small\leftmark}
\fancyhead[LO]{\sl\small\rightmark}
\renewcommand{\headrulewidth}{0.5pt}
\usepackage{sectsty}
\sectionfont{\fontsize{16}{18}\usefont{OT1}{phv}{m}{n}\selectfont}
\subsectionfont{\fontsize{13}{15}\usefont{OT1}{phv}{m}{n}\selectfont}
\subsubsectionfont{\fontsize{11}{13}\usefont{OT1}{phv}{m}{n}\selectfont}
\usepackage[Lenny]{fncychap}
\ChNameVar{\fontsize{14}{16}\usefont{OT1}{phv}{m}{n}\selectfont}
\ChNumVar{\fontsize{60}{62}\usefont{OT1}{phv}{m}{n}\selectfont}
\ChTitleVar{\fontsize{24}{26}\usefont{OT1}{phv}{m}{n}\selectfont}
% remove numbering from chapter page
\makeatletter
\renewcommand\ps@plain{\let\@mkboth\@gobbletwo
\let\@oddhead\@empty
\def\@oddfoot{\reset@font\hfil}
\let\@evenhead\@empty\let\@evenfoot\@oddfoot}
% remove vertical space above chapter head
\patchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{}% Removes space above \chapter head
\patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{}{}{}% Removes space above \chapter* head
% above and below space in equations
\g@addto@macro\normalsize{%
\setlength\abovedisplayskip{10pt}
\setlength\belowdisplayskip{10pt}
\setlength\abovedisplayshortskip{10pt}
\setlength\belowdisplayshortskip{10pt}
}
% space between text and images
\setlength{\textfloatsep}{10pt plus 1.0pt minus 2.0pt}
\makeatother
\usepackage{makeidx}
\makeindex