-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtex_example.tex
109 lines (84 loc) · 2.89 KB
/
tex_example.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
\documentclass[12pt]{book}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{minitoc}
\usepackage{minitoc}
\usepackage{lipsum}
\usepackage{xcolor}
\usepackage[french]{babel}
\usepackage{ragged2e}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{pdfpages}
% Change the float captions font in italic
\renewcommand{\captionfont}{\it}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% biblio (round brackets)
\usepackage[round]{natbib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Margins
\usepackage{geometry}
\geometry{top=3cm, bottom=3cm, left=3cm, right=3cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Double spaced lines
\usepackage{setspace}
\doublespacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Line numbers
\usepackage{lineno}
\linenumbers
%%%%%%%%%%%%%%%%%%%%%%%%%%%% Header/footer definition
\usepackage{fancyhdr}
%%%%%%%%%%%%%%%%%%%%%%%%%%% For toc management (depth of toc)
\setcounter{tocdepth}{1}
\setcounter{minitocdepth}{6}
%%%%%%%%%%%%%%%%%%%%%%%%%% reference (must be loaded after minitoc)
\usepackage{hyperref}
% change colors in references
\hypersetup{
colorlinks = true,
linkcolor=,
urlcolor = blue,
citecolor=black
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Define homemade style for header/footer
% Redefine commands of chapter and section writting
% Hard to understand, even for me
% Original format
% \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\chaptername\ \thechapter.\ #1}}{}}
% \renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\thesection .\ #1}}{}}
% New format
\renewcommand{\chaptermark}[1]{\markboth{\textbf{\textit{\chaptername\ \thechapter.\ #1}}}{}}
\renewcommand{\sectionmark}[1]{\markright{\textbf{\textit{\thesection .\ #1}}}{}}
%%%%%%%%%%%% define a fancy style for headers
\fancypagestyle{mystyle} {
\fancyhead{} % clear all header fields
% Modify the header methods
\fancyhead[RO]{\rightmark} % chapter for right odd page header
\fancyhead[LE]{\leftmark} % section for left even page header
\fancyfoot[RO]{\textit{Nicolas Barrier}} % author for right odd footer
\fancyfoot[LE]{\textit{\today}} % date for left even footer
}
\title{My PhD Thesis}
\author{Nicolas Barrier}
\date{\today}
\begin{document}
% Include a PDF page
\includepdf[pages=-]{figs/Couverture_nbarrier.pdf}
% or use the \maketitle instead
\maketitle
% For activating Mini TOC
\dominitoc
% set empty page style for the table of content (no header/footer)
\pagestyle{empty}
\tableofcontents
\clearpage
% set the pagestyle for the remaining of the document
\pagestyle{mystyle}
% This is where you fill the void!
\input{intro.tex}
\input{chap1.tex}
\input{conclusion}
% to force the display of all the references, even those
% not cited (not advised, here only for example)
\nocite{*}
\bibliographystyle{plainnat} % We choose the "plain" reference style
\bibliography{biblio.bib} % Entries are in the refs.bib file
\addcontentsline{toc}{chapter}{Biblio} % add the biblio on the Toc with the name "Biblio"
\end{document}