1\documentclass[10pt]{book} 2 3\usepackage{import} % To import an external document. 4\usepackage[french]{babel} % To help with hyphenation. 5\usepackage{soul} % To provide nice hyphenation. 6\usepackage{hyperref} % To have hyperlinks to internet. 7\usepackage{csquotes} % To display quotes. 8\usepackage{array} % To have better presentation in tables. 9\usepackage{multirow} % To have rowspan in tables. 10\usepackage{makecell} % To have colspan in tables. 11\usepackage{tabulary} % To make tables. 12 13\author{Put here your name} 14\title{A nice and catchy title} 15 16%------------------------------------------------- 17%-- Page layout -- 18%------------------------------------------------- 19\usepackage[ 20 inner=1.2in, 21 outer=0.8in, 22 top=1.2in, 23 bottom=1.2in, 24 a4paper, 25 twoside] 26 {geometry} % showframe 27 28%------------------------------------------------- 29%-- Fonts types -- 30%------------------------------------------------- 31\usepackage{fontspec} % To use local system fonts. 32\setmainfont{Lucida Bright} % The local system font. 33 34%------------------------------------------------- 35%-- Headers and footers -- 36%------------------------------------------------- 37 38%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 39% LE CE RE | LO CO RO % 40%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 41% Sc nº: Sc title page | page Ch nº: Ch title % 42%-----------------------------------------------------------------------------------------% 43% | % 44% Bla bla bla bla bla bla bla | Bla bla bla bla bla bla bla % 45% Bla bla bla bla bla bla bla | Bla bla bla bla bla bla bla % 46% Bla bla bla bla bla bla bla | Bla bla bla bla bla bla bla % 47% Bla bla bla bla bla bla bla | Bla bla bla bla bla bla bla % 48% Bla bla bla bla bla bla bla | Bla bla bla bla bla bla bla % 49%------- | % 50% Note: bla bla bla | % 51%--------------------------------------------+--------------------------------------------% 52% Author name | Main title % 53%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 54 55\usepackage{fancyhdr} % To have fancy headers. 56\pagestyle{fancy} % To activate fancy headers. 57 58% Copy author and title into variables that can be 59% used in headers: 60\makeatletter 61\let\Author\@author 62\let\Title\@title 63\makeatother 64 65% Configure all pages: 66\renewcommand{\chaptermark}[1]{\markboth{\thechapter~-~#1}{}} % leftmark (higher level) 67\renewcommand{\sectionmark}[1]{\markright{\thesection~-~#1}} % rightmark (lower level) 68\fancyhf{} 69\renewcommand{\headrulewidth}{0.4pt} 70\renewcommand{\footrulewidth}{0.4pt} 71\fancyhead[LE]{\leftmark} 72\fancyhead[RE,LO]{\thepage} 73\fancyhead[RO]{\rightmark} 74\fancyfoot[LE]{\Title} 75\fancyfoot[RO]{2018 - \Author} 76 77% Configure chapter pages: 78\fancypagestyle{plain}{ 79 \fancyhf{} 80 \fancyhead[RE,LO]{\thepage} 81 \fancyfoot[RO]{2018 - \Author} 82} 83 84%-------------------------------------------------- 85%-- Listing configuration -- 86%-------------------------------------------------- 87\usepackage{listings} % To display source code. 88\usepackage[dvipsnames]{xcolor} % To define fancy colors. 89 90\definecolor{light-gray}{gray}{0.97} 91\lstdefinestyle{c-style}{ 92 backgroundcolor=\color{light-gray}, 93 belowcaptionskip=1\baselineskip, 94 breaklines=true, 95 xleftmargin=0pt, 96 language=C, 97 showstringspaces=false, 98 basicstyle=\footnotesize\ttfamily, 99 keywordstyle=\bfseries\color{black}, 100 commentstyle=\itshape\color{OliveGreen}, 101 identifierstyle=\color{Violet}, 102 stringstyle=\color{Sepia}, 103} 104 105%-------------------------------------------------- 106%-- Graphics configuration -- 107%-------------------------------------------------- 108\usepackage[export]{adjustbox} % To use min width, for better scaling images 109\usepackage{graphicx} % To include images. 110\usepackage{pdfpages} % To import a full image for the half-title 111 112%-------------------------------------------------- 113%-- The document -- 114%-------------------------------------------------- 115\begin{document} 116 117%----------------- Half title --------------------- 118\frontmatter 119\includepdf{couverture.jpg} % This image should have same ratio as paper in your document. 120 121%---------------- Title --------------------------- 122\maketitle 123 124%----- Information, copyright notice, etc --(TODO)- 125%----- Dedication (TODO) -------------------------- 126 127%------------- Table of contents ------------------ 128\tableofcontents 129 130%------------- List of figures ------------------- 131\listoffigures 132 133%------------- Actual content -------------------- 134\graphicspath{ {content/images/} } % That's where images are. 135\import{content/}{aaa.tex} 136 137%------------- End of document ------------------- 138\end{document}