|
|
\documentclass[a4paper,11pt]{article}
|
|
|
\setlength{\headheight}{14.5pt}
|
|
|
\addtolength{\topmargin}{-2.5pt}
|
|
|
|
|
|
% Language and encoding settings
|
|
|
\usepackage[utf8]{inputenc}
|
|
|
\usepackage[T1]{fontenc}
|
|
|
\usepackage[french]{babel}
|
|
|
|
|
|
% Set size and margins
|
|
|
\usepackage[a4paper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry}
|
|
|
|
|
|
% Useful packages
|
|
|
\usepackage{amsmath}
|
|
|
\usepackage{graphicx}
|
|
|
\usepackage{verbatim}
|
|
|
\usepackage{parskip}
|
|
|
|
|
|
% Titling
|
|
|
\usepackage{titling}
|
|
|
\renewcommand\maketitlehooka{\null\mbox{}\vfill}
|
|
|
\renewcommand\maketitlehookb{\vfill\null}
|
|
|
|
|
|
% Enable links
|
|
|
\usepackage[colorlinks=true,allcolors=black]{hyperref}
|
|
|
\hypersetup{urlcolor=red}
|
|
|
|
|
|
% Multifiles
|
|
|
\usepackage[subpreambles=true]{standalone}
|
|
|
\usepackage{import}
|
|
|
|
|
|
% Paging
|
|
|
\usepackage{fancyhdr}
|
|
|
\pagestyle{fancy}
|
|
|
\fancyhead[L]{SAE 2.02}
|
|
|
\fancyhead[C]{Exploration algorithmique d'un problème}
|
|
|
\fancyhead[R]{2023}
|
|
|
\fancyfoot[L]{\bsc{Agostinho} Alexandre}
|
|
|
\fancyfoot[C]{\thepage}
|
|
|
\fancyfoot[R]{\leftmark}
|
|
|
\renewcommand{\headrulewidth}{0.4pt}
|
|
|
\renewcommand{\footrulewidth}{0.4pt}
|
|
|
|
|
|
% Code style
|
|
|
\usepackage{listings}
|
|
|
\usepackage{color}
|
|
|
\definecolor{dkgreen}{rgb}{0,0.6,0}
|
|
|
\definecolor{gray}{rgb}{0.5,0.5,0.5}
|
|
|
\definecolor{mauve}{rgb}{0.58,0,0.82}
|
|
|
\lstset{frame=tb,
|
|
|
language=C,
|
|
|
aboveskip=3mm,
|
|
|
belowskip=3mm,
|
|
|
showstringspaces=false,
|
|
|
columns=flexible,
|
|
|
basicstyle={\small\ttfamily},
|
|
|
numbers=none,
|
|
|
numberstyle=\tiny\color{gray},
|
|
|
keywordstyle=\color{blue},
|
|
|
commentstyle=\color{dkgreen},
|
|
|
stringstyle=\color{mauve},
|
|
|
breaklines=true,
|
|
|
breakatwhitespace=true,
|
|
|
tabsize=3
|
|
|
}
|
|
|
|
|
|
|
|
|
% Title
|
|
|
\title{%
|
|
|
\begin{minipage}
|
|
|
\linewidth%
|
|
|
\centering\bfseries
|
|
|
SAE 2.02
|
|
|
\vskip3pt
|
|
|
\large Exploration algorithmique d’un problème
|
|
|
\end{minipage}
|
|
|
}
|
|
|
\date{\today}
|
|
|
\author{\bsc{Agostinho} Alexandre}
|
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
% Title page
|
|
|
\begin{titlingpage}
|
|
|
\maketitle
|
|
|
\end{titlingpage}
|
|
|
\newpage
|
|
|
|
|
|
% Table of contents page
|
|
|
\tableofcontents
|
|
|
\newpage
|
|
|
|
|
|
% Other pages (sections)
|
|
|
\import{sections/}{partie1}
|
|
|
\import{sections/}{partie2}
|
|
|
|
|
|
\end{document} |