first commit
This commit is contained in:
119
main.tex
Normal file
119
main.tex
Normal file
@@ -0,0 +1,119 @@
|
||||
% !TeX root = ./main.tex
|
||||
\documentclass[12pt,a4paper]{article}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage[english,french]{babel}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage{color}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{hyperref}
|
||||
\usepackage[top=3cm,bottom=3cm,right=3cm,left=3cm]{geometry}
|
||||
\usepackage{csquotes}
|
||||
\usepackage{caption}
|
||||
\usepackage{subcaption}
|
||||
|
||||
|
||||
% https://en.wikibooks.org/wiki/LaTeX/Hyperlinks
|
||||
\usepackage{xcolor}% http://ctan.org/pkg/xcolor
|
||||
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
|
||||
\hypersetup{
|
||||
colorlinks=true,
|
||||
linkcolor=blue!50!blue,
|
||||
urlcolor=blue!70!blue,
|
||||
citecolor=blue!70!blue
|
||||
% colorlinks=false,% hyperlinks will be black
|
||||
% linkbordercolor=blue,% hyperlink borders will be red
|
||||
% pdfborderstyle={/S/U/W 1}% border style will be underline of width 1pt
|
||||
}
|
||||
|
||||
\usepackage{tabularx}
|
||||
\usepackage{titlesec}
|
||||
\usepackage{parskip}
|
||||
|
||||
\definecolor{lightgray}{rgb}{.9,.9,.9}
|
||||
\definecolor{darkgray}{rgb}{.4,.4,.4}
|
||||
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
|
||||
|
||||
%Listing
|
||||
|
||||
\usepackage{listings}
|
||||
\lstset{
|
||||
basicstyle=\ttfamily,
|
||||
language=Python,
|
||||
belowcaptionskip=1\baselineskip,
|
||||
basicstyle=\footnotesize\ttfamily,
|
||||
stringstyle=\color{orange},
|
||||
numbers=left,
|
||||
numberstyle=\tiny,
|
||||
xleftmargin=\parindent,
|
||||
commentstyle=\color{blue},
|
||||
keywordstyle=\color{green},
|
||||
inputencoding=utf8,
|
||||
extendedchars=true,
|
||||
breaklines=true,
|
||||
columns=fullflexible,
|
||||
showstringspaces=false,
|
||||
postbreak=\mbox{\textcolor{red}{$\hookrightarrow$}\space},
|
||||
literate=%
|
||||
{é}{{\'{e}}}1
|
||||
{è}{{\`{e}}}1
|
||||
{ê}{{\^{e}}}1
|
||||
{ë}{{\¨{e}}}1
|
||||
{û}{{\^{u}}}1
|
||||
{ù}{{\`{u}}}1
|
||||
{â}{{\^{a}}}1
|
||||
{à}{{\`{a}}}1
|
||||
{î}{{\^{i}}}1
|
||||
{ô}{{\^{o}}}1
|
||||
{ç}{{\c{c}}}1
|
||||
{Ç}{{\c{C}}}1
|
||||
{É}{{\'{E}}}1
|
||||
{Ê}{{\^{E}}}1
|
||||
{À}{{\`{A}}}1
|
||||
{Â}{{\^{A}}}1
|
||||
{Î}{{\^{I}}}1
|
||||
}
|
||||
|
||||
\DeclareCaptionFont{blue}{\color{blue}}
|
||||
\DeclareCaptionFont{black}{\color{black}}
|
||||
|
||||
\captionsetup[lstlisting]{labelfont=black,textfont=black, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}
|
||||
|
||||
|
||||
\input{commands/commands}
|
||||
|
||||
% Rename listing
|
||||
\renewcommand{\lstlistlistingname}{Liste des fichiers sources}
|
||||
|
||||
\graphicspath{{./logo/}}
|
||||
|
||||
%Header and footer
|
||||
\pagestyle{fancy}
|
||||
\fancyhf{}
|
||||
\rhead{\studentNameA, \studentNameB, \studentNameC}
|
||||
\lhead{\courseName, \projectname}
|
||||
\cfoot{\thepage}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\pagenumbering{gobble}
|
||||
|
||||
%Title page
|
||||
\begin{titlepage}
|
||||
\include{coverpage/coverpage}
|
||||
\end{titlepage}
|
||||
|
||||
\pagenumbering{roman}
|
||||
|
||||
% Display the files
|
||||
\setcounter{tocdepth}{2}
|
||||
\lstlistoflistings
|
||||
|
||||
\newpage
|
||||
|
||||
\pagenumbering{arabic}
|
||||
|
||||
\input{chapters/code}
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user