Skip to content

Instantly share code, notes, and snippets.

@jy95
Created August 2, 2017 21:06
Show Gist options
  • Select an option

  • Save jy95/427318bafd75817d8cf50c6a20b7eb76 to your computer and use it in GitHub Desktop.

Select an option

Save jy95/427318bafd75817d8cf50c6a20b7eb76 to your computer and use it in GitHub Desktop.
startup main.tex
% !TeX spellcheck = fr_FR
%
\documentclass[a4paper,12pt]{report}
\setcounter{secnumdepth}{4} % seting level of numbering (default for "report" is 3)
\usepackage{pdfpages} % use pdf for page title
% handle french language
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
% page settings
\usepackage[a4paper,top=2cm,bottom=2cm,right=2cm,left=2cm]{geometry}
\usepackage[autostyle]{csquotes} % for citations
%\usepackage[none]{hyphenat} % for hypenation - no working
\usepackage{graphicx} % for pictures
\usepackage{float} % for float figures
\usepackage{hyperref} % for url
\usepackage[
backend=biber,
style=verbose-ibid,
%citestyle=mla,
sorting=nty
]{biblatex} % for bibliography
% Node.js code block
\usepackage{listings}
\usepackage{color}
\definecolor{lightgray}{rgb}{.9,.9,.9}
\definecolor{darkgray}{rgb}{.4,.4,.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
\lstdefinelanguage{Node}{
keywords={do, if, in, for, let, new, try, var, case, else, enum, eval, null, this, true, void, with, await, break, catch, class, const, false, super, throw, while, yield, delete, export, import, public, return, static, switch, typeof, default, extends, finally, package, private, continue, debugger, function, arguments, interface, protected, implements, instanceof, undefined
},
morecomment=[l]{//},
morecomment=[s]{/*}{*/},
morestring=[b]',
morestring=[b]",
ndkeywords={class, export, boolean, throw, implements, import, this},
keywordstyle=\color{blue}\bfseries,
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
sensitive=true
}
%Listings : extra settings
\renewcommand{\lstlistingname}{Extrait de code}
\renewcommand{\lstlistlistingname}{Table des extraits de code}
\pdfminorversion=7 % set min PDF version to 1.7
\hbadness=10000 % Ignore underfull boxes
\hfuzz=50pt % Ignore basic hbox warning
\addbibresource{bibliography.bib} %Imports bibliography file
\begin{document}
\pagenumbering{gobble} % stop numbering
\includepdf{extra/couvertureMemoire}
\pagenumbering{roman} % Start roman numbering
% Remerciments
\include{chapters/Remerciments}
\tableofcontents % generate the table of contents
\pagenumbering{arabic} % Switch to normal numbers
% les illustrations et extraits de code
% le pourquoi des commandes suivantes :
% you have to manually add it to the table of contents, so it should be preceded by \cleardoublepage in order to ensure that the page reference is correct. Uncomment the \phantomsection line if you're using hyperref:
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures % figures
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{\lstlistlistingname}
\lstlistoflistings
% les chapitres
\include{chapters/Introduction}
\include{chapters/ContexteTravail}
\include{chapters/Calendrier}
\include{chapters/Application}
\include{chapters/Conclusion}
\chapter*{Annexes}
\addcontentsline{toc}{chapter}{Annexes}
Voici la liste des annexes à votre disposition : \\
\begin{tabular}{|r|l|l|}
\hline
Identifiant & Nom du fichier/dossier consultable & Description \\
\hline
A &
helpdesk-api
&
\begin{minipage}[t]{0.5\textwidth}
Code source de la partie API.\\
Vous y retrouverez notamment un fichier << readMe >>, vous détaillant en autres la structure du projet, la procédure d'installation du projet, les tests, etc.
\end{minipage} \\
\hline
B &
helpdesk-admin
&
\begin{minipage}[t]{0.5\textwidth}
Code source de la partie interface web.\\
Vous y retrouverez notamment un fichier << readMe >>, vous détaillant en autres la structure du projet, la procédure d'installation du projet, etc.
\end{minipage} \\
\hline
C &
Fonctionnalités API.docx
&
\begin{minipage}[t]{0.5\textwidth}
Liste des récits utilisateurs décrivant les fonctionnalités de l'API.
\end{minipage} \\
\hline
D &
Fonctionnalités WEB.docx
&
\begin{minipage}[t]{0.5\textwidth}
Liste des récits utilisateurs décrivant les fonctionnalités de l'interface web.
\end{minipage} \\
\hline
E &
vidéos de démonstration
&
\begin{minipage}[t]{0.5\textwidth}
Dossier contenant quelques vidéos de présentation de l'interface web pour divers scénarios d'utilisation.
\end{minipage} \\
\hline
F &
TFE
&
\begin{minipage}[t]{0.5\textwidth}
Dossier contenant les fichiers sources \textit{LaTeX} à l'origine de ce présent mémoire.
\end{minipage} \\
\hline
G &
TFE.pdf
&
\begin{minipage}[t]{0.5\textwidth}
Version PDF de ce présent mémoire
\end{minipage} \\
\hline
H &
readMe.pdf
&
\begin{minipage}[t]{0.5\textwidth}
Fichier << readMe >> détaillant le contenu des annexes
\end{minipage} \\
\hline
\end{tabular}
\printbibliography[heading=bibintoc] % add bibliography and also add it in toc
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment