Add template (beamer wip)

This commit is contained in:
nemunaire 2014-07-24 18:44:25 +02:00
parent 003c18b17b
commit aba3c08cc6
14 changed files with 707 additions and 0 deletions

View File

@ -0,0 +1,237 @@
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$}
\usetheme{Darmstadt}
\setbeamercolor{structure}{fg=black, bg=white}
\setbeamercovered{dynamic}
\setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette secondary}
\setbeamercolor*{date in head/foot}{parent=palette primary}
\setbeamercolor*{section in head/foot}{parent=palette tertiary}
\setbeamercolor*{subsection in head/foot}{parent=palette primary}
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\setbeamertemplate{subsection page}
{
\begin{centering}
\begin{beamercolorbox}[sep=8pt,center,rounded=true]{part title}
\usebeamerfont{subsection title}\insertsubsection\par
\end{beamercolorbox}
\end{centering}
}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\usepackage{fixltx2e} % provides \textsubscript
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
\ifluatex
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
\usepackage[utf8]{inputenc}
\fi
\fi
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{plainnat}
$endif$
$if(biblatex)$
\usepackage{biblatex}
$if(biblio-files)$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(listings)$
\usepackage{listings}
\definecolor{identifiers}{HTML}{750C34}
\definecolor{comments}{HTML}{4b9900}
\definecolor{keywords}{HTML}{009ede}
\definecolor{numbers}{HTML}{6b6b6b}
\definecolor{strings}{HTML}{BD0009}
\lstset{%
frame=none,
tabsize=4,
columns=fixed,
basicstyle=\ttfamily\color{black}\small,
identifierstyle=\color{identifiers},
commentstyle=\color{comments}\itshape,
stringstyle=\color{strings},
keywordstyle=\color{keywords}\bfseries,
numbers=left,
numberstyle=\tiny\color{numbers},
numbersep=12pt,
numberblanklines=true,
stepnumber=5,
breaklines=true,
breakatwhitespace=true,
texcl=true,
escapeinside={(*@}{@*)}
}
%% TIGER
\lstdefinelanguage{tiger}{%
morekeywords=[1]{int, string, void, object}, % types
morekeywords=[2]{nil, if, then, else, for, do, to, while, var, type,
function, array, of, let, in, end, import, break, primitive}, % keywords
morekeywords=[3]{print, print_int, print_err, getchar, chr, ord, size,
concat, substring, exit, flush, not, strcmp, streq}, % builtins
morekeywords=[4]{new, class, method, extends} % object
sensitive=false,
morecomment=[s]{/*}{*/},
morestring=[b]",
basicstyle=\small,
}
\usepackage{etoolbox}
\makeatletter
\@ifundefined{XeTeXinterchartokenstate}
{\pretocmd{\lstlisting}{\NoAutoSpacing}{}{}}
{\pretocmd{\lstlisting}{\XeTeXinterchartokenstate=0 }{}{}}
\makeatother
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
$if(tables)$
\usepackage{longtable}
% These lines are needed to make table captions work with longtable:
\makeatletter
\def\fnum@table{\tablename~\thetable}
\makeatother
$endif$
$if(url)$
\usepackage{url}
$endif$
$if(graphics)$
\usepackage{graphicx}
\makeatletter
\def\ScaleIfNeeded{%
\ifdim\Gin@nat@width>\linewidth
\linewidth
\else
\Gin@nat@width
\fi
}
\makeatother
\let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}}
$endif$
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title:
\AtBeginPart{
\let\insertpartnumber\relax
\let\partname\relax
\frame{\partpage}
}
\AtBeginSection{
\let\insertsectionnumber\relax
\let\sectionname\relax
\frame{\tableofcontents[currentsection, hideothersubsections]}
}
\AtBeginSubsection{
\let\insertsubsectionnumber\relax
\let\subsectionname\relax
\frame{\subsectionpage}
}
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
\setlength{\emergencystretch}{3em} % prevent overfull lines
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$if(lang)$
\usepackage[$lang$]{babel}
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{$title$}
$endif$
$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
$endif$
$if(date)$
\date{$date$}
$endif$
\pgfdeclareimage[height=3.4cm]{assistant-logo}{images/assistants}
\institute{\pgfuseimage{assistant-logo}}
\logo{\includegraphics[scale=0.1]{images/epita}}
\begin{document}
$if(title)$
\frame{\titlepage}
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
\begin{frame}
\tableofcontents[hideallsubsections]
\end{frame}
$endif$
$body$
$if(natbib)$
$if(biblio-files)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 MiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 494 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -0,0 +1,67 @@
\section*{Remerciements}
\markboth{Remerciements}{}
\addcontentsline{toc}{chapter}{\protect\numberline{}Remerciements}
\noindent Ce document est destiné à une utilisation au sein dEPITA
(\charterColor{\href{http://www.epita.fr/}{site}}) uniquement.
\bigskip
\noindent Copyright \copyright{} [@--
if ($DOC->team eq 'yaka') { $DOC->year . '/' . ($DOC->year + 1) }
else {
if ($DOC->month < 2) { ($DOC->year - 1). '/' . $DOC->year }
else { $DOC->year . '/' . ($DOC->year + 1) }
}
--@]%stopzone
~Assistants
\email{%
[@-- $DOC->team --@]%stopzone
@epita.fr%
}
\bigskip
\begin{center}
\colorlet{currentcolor}{.}{\color{\graphicChartColor}%
\framebox[14cm]{
\color{currentcolor}{%
\parbox{13cm}{
\vspace{0.5cm}
\textbf{Copier ce document est autorisé \emph{sous ces conditions seulement} :}
\begin{itemize}[itemsep=8pt,topsep=8pt]
\item[$\triangleright$] Vous avez téléchargé cet exemplaire depuis
lintranet\footnotemark{} des assistants.
\item[$\triangleright$] Il sagit de sa version la plus récente disponible.
\item[$\triangleright$] Il est de votre responsabilité de vous assurer
quaucun individu hors de votre promotion (EPITA
[@--
if ($DOC->team eq 'acu') {
$DOC->month < 2 ? $DOC->year + 2 : $DOC->year + 3
}
else { $DOC->year + 2 }
--@]%stopzone
) ne puisse accéder à ce document \emph{ni} à ses copies.
\end{itemize}
\medskip
}}}}
\end{center}
\newpage
\thispagestyle{empty}
\mbox{}
\newpage
\tableofcontents
\markboth{Table des matières}{}
\addcontentsline{toc}{chapter}{\protect\numberline{}Table des matières}
\mainmatter
\addcontentsline{toc}{part}{\protect\numberline{}Rapport de stage}

View File

@ -0,0 +1,69 @@
\begin{document}
\frontmatter
\begin{titlepage}
\def\logoHeight{80pt}
\noindent
\begin{minipage}[t]{\textwidth}
\noindent {\vrule depth 3pt height 1pt width \textwidth} \\
\renewcommand{\arraystretch}{2}
\begin{tabular}[t]{m{.22\textwidth}m{.75\textwidth}}
\includegraphics[height=\logoHeight]{[@--
$DOC->imagedir->get_absolute --@]/epita.pdf}%
&
\hfill
\begin{tabular}{r}
{\Huge
{\scshape\bfseries Rapport de stage de fin d'étude}
}\\
{\large Février août 2014}
\end{tabular} \\
\end{tabular}
\renewcommand{\arraystretch}{1}
\newlength{\myVersionLength}%
\settowidth{\myVersionLength}{%
{\large ~~~Système, Réseaux et Sécurité}
}%
\setlength{\myVersionLength}{\textwidth - \myVersionLength}
\noindent {\vrule depth -1pt height 5pt width \myVersionLength}%
{\large ~~Système, Réseaux et Sécurité}
\end{minipage}
\vfill
\begin{center}
\includegraphics[width=0.95\textwidth]{[@-- $DOC->imagedir->get_absolute --@]/nq-high.png}
\noindent {\vrule depth 1pt height 1pt width .68\textwidth} \\
\vspace{1em}
\parbox{.68\linewidth}{\sffamily Vous participerez à lélaboration du cluster
en mettant en place des outils centralisés de déploiement de machines
virtuelles ainsi que des tests automatiques de montée en charge et
participerez à la mise en place des outils permettant de monitorer le réseau
en temps réel. Vous aurez à définir et justifier les choix darchitecture et
de technologie en accord avec votre encadrant. Laccent sera en particulier
mis sur la sécurité pour toutes les parties front-end du cluster.}
\end{center}
\vfill
\noindent {\Large\bfseries Pierre-Olivier \textsc{Mercier}~\email{nemunaire@epita.fr}}
\noindent {\vrule depth 3pt height 1pt width \textwidth}
\end{titlepage}
\newpage
\thispagestyle{empty}
\mbox{}
\newpage

View File

@ -0,0 +1 @@
\end{document}

View File

@ -0,0 +1 @@
\newpage{}

View File

@ -0,0 +1,332 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% STD.TEX
%
% Defines macros and loads packages that are needed for all document types.
%
% This file targets all LaTeX-based documents, including Beamer documents such
% as presentation slides and more regular documents such as tutorials.
%
% Last updated by Thibaut Le Page <lepage_a@yaka.epita.fr> on May, 5th 2013.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[11pt,a4paper]{book}
%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[english,frenchb]{babel}
\usepackage[T1]{fontenc} % font encoding
\usepackage{euler} % math font (must be loaded before fontspec)
\usepackage{tabularx} % arrays with paragraph-like cells
\usepackage[table]{xcolor} % colors
\usepackage{tikz} % graphics
\usepackage{float} % improve floating figures and tables
\usepackage{titlesec} % must be loaded BEFORE hyperref!
\usepackage{hyperref} % hyperlinks
\usepackage{graphicx} % pictures inclusion
\usepackage{listings} % source code environments and inclusion
\usepackage{fancybox} % boxes
%\usepackage{fancyhdr} % En-tête de pages personalisés
\usepackage{fontspec} % high-level font selection for XeTeX
\usepackage{textcomp} % more symbols
\usepackage{pifont} % even more symbols (with \ding)
\usepackage{amsmath,amsfonts} % math symbols and environments
\usepackage{calc} % operations on lengths
\usepackage{booktabs} % better tables
\usepackage{multirow} % tabular cells spanning multiple rows
\usepackage{ifthen} % if-then-else construct
\usepackage{enumitem} % list customization
\usepackage{sectsty} % section-title customization
%%% STANDARD COLORS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% We can use \rowcolors{3}{OddColor}{EvenColor} to alternatively color the
% lines of a table.
\definecolor{couleur_titre}{rgb}{0.20, 0.45, 0.80}
\definecolor{blue}{rgb}{0.13,0.29,0.46}
\definecolor{red}{rgb}{1,0,0}
\definecolor{lightgray}{RGB}{240,240,240}
\definecolor{pseudo}{rgb}{0.13,0.29,0.46}
\definecolor{vert}{RGB}{0,176,80}
\definecolor{verta}{RGB}{79,97,40}
\definecolor{vertb}{RGB}{195,214,155}
\definecolor{vertc}{RGB}{235,241,221}
\definecolor{bleua}{RGB}{31,73,125}
\definecolor{bleub}{RGB}{239,249,255}
\definecolor{rougea}{RGB}{192,80,77}
\definecolor{rougeb}{RGB}{242,220,219}
\definecolor{brown}{RGB}{128,0,0}
\definecolor{blue}{RGB}{0,0,255}
\definecolor{green}{RGB}{0,128,0}
\definecolor{seagreen}{RGB}{69,158,181}
\definecolor{grey}{RGB}{70,70,75}
\definecolor{lightgrey}{RGB}{220,220,220}
\definecolor{blue}{RGB}{80,80,255}
\definecolor{green}{RGB}{80,180,80}
% YAKA 2014 COLORS
\definecolor{purple}{Hsb}{327,0.94,0.29}
\definecolor{lightpurple}{Hsb}{327,0.09,0.94}
\definecolor{red}{Hsb}{351,0.96,0.32}
\definecolor{lightred}{Hsb}{355,0.20,0.97}
\definecolor{darkblue}{Hsb}{236,0.96,0.21}
\definecolor{lightblue}{Hsb}{236,0.92,0.10}
% This variable is used to pass the chosen main color to other macros.
% Do not delete or modify it, just change its argument.
\def\graphicChartColor{grey}
\def\graphicChartBackgroundColor{lightgrey}
% ***** filigrane *****
\usepackage{eso-pic,rotating}
\AddToShipoutPicture{%
\unitlength 1cm
\put(11,15){%
\begin{rotate}{45}
\makebox(0,0){\color{lightgray}\scalebox{3.5}{\Huge BROUILLON}}
\end{rotate}}
}
% ***** commandes personnelles *****
\newcommand\Dual{\textsc{Dual} }
\makeatletter
\renewcommand\chapter{\clearpage\@startsection{chapter}{1}{-1.75em}{\baselineskip}{0.5\baselineskip}{\LARGE\textbf}}
\makeatother
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{section}}
% ***** en-têtes et pieds de pages *****
%\pagestyle{fancyplain}
% \lhead[\emph{\nouppercase{\leftmark}}]{\emph{\textit{Rapport de stage}}}
% \chead{}
% \rhead[\emph{\textit{Rapport de stage}}]{\emph{\nouppercase{\leftmark}}}
%%% LISTINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% TIGER
\lstdefinelanguage{tiger}%
{
morekeywords=[1]{int, string, void, object}, % types
morekeywords=[2]{nil, if, then, else, for, do, to, while, var, type,
function, array, of, let, in, end, import, break, primitive}, % keywords
morekeywords=[3]{print, print_int, print_err, getchar, chr, ord, size,
concat, substring, exit, flush, not, strcmp, streq}, % builtins
morekeywords=[4]{new, class, method, extends} % object
sensitive=false,
morecomment=[s]{/*}{*/},
morestring=[b]",
basicstyle=\small,
}
\lstdefinelanguage{raw}%
{
morekeywords={},
sensitive=false,
morestring=[b]",
basicstyle=\small,
}
% Defines an environment to display source code.
% The language name must be provided as [argument], or the first language
% defined in project.xml will be assumed.
\lstnewenvironment{code}[1][Java]{%stopzone
%\lstnewenvironment{code}[1][[@-- $default_language --@]]{%stopzone
\lstset{%
language={#1},
frame=L,
tabsize=4,
basicstyle=\ttfamily\color{grey}\NoAutoSpacing,
identifierstyle=\color{purple},
commentstyle=\color{green}\itshape,
stringstyle=\color{red},
keywordstyle=\color{blue}\bfseries,
numbers=left,
numberstyle=\tiny\color{grey},
numbersep=12pt,
numberblanklines=false,
breaklines=true,
breakatwhitespace=true,
texcl=true,
}%
\vskip\baselineskip\noindent%
}{
\vskip\baselineskip%
}
\definecolor{identifiers}{HTML}{750C34}
\definecolor{comments}{HTML}{4b9900}
\definecolor{keywords}{HTML}{009ede}
\definecolor{numbers}{HTML}{6b6b6b}
\definecolor{strings}{HTML}{BD0009}
\lstset{%
frame=none,
tabsize=4,
basicstyle=\ttfamily\color{black}\small\NoAutoSpacing,
identifierstyle=\color{identifiers},
commentstyle=\color{comments}\itshape,
stringstyle=\color{strings},
keywordstyle=\color{keywords}\bfseries,
numbers=left,
numberstyle=\tiny\color{numbers},
numbersep=12pt,
numberblanklines=true,
breaklines=true,
breakatwhitespace=true,
texcl=true,
}
% Definition of the prompt
\newcommand{\prompt}[0]{{\bfseries{\itshape 42sh}\$}$\quad$}
% Defines an environment that mimic a terminal.
% The prompt (42sh$) is automatically detected and replaced with a more
% readable version. Detected forms are:
% 42sh$
% 42sh>
% 42sh
% $>
% To be detected, they must be followed by a whitespace (actually this is to
% not emphasize the space between the prompt and the first token).
\lstnewenvironment{console}[0]{%
\lstset{%
language=bash,
frame=single,
backgroundcolor=\color{lightgrey},
basicstyle=\ttfamily,
commentstyle=\color{green}\itshape,
stringstyle=\color{red},
keywordstyle={},
numbers=none,
breaklines=true,
breakatwhitespace=true,
texcl=true,
showspaces=true,
literate=*%
{42sh\$\ }{{\prompt{}}}{6}%
{42sh\ }{{\prompt{}}}{6}%
{42sh>\ }{{\prompt{}}}{6}%
{\$>\ }{{\prompt{}}}{6},
}
}{}
%%% HYPERLINKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hypersetup{%
colorlinks=true, % links are colored
urlcolor=\graphicChartColor, % URL links
linkcolor=black, % internal links
citecolor=green, % bibliography links
pdfborder= 0 0 0 % links are not framed
}
\newcommand{\refer}[1]{%
{\small\ref{#1}}~\emph{\nameref{#1} p.~\pageref{#1}}%
}
%%% OTHER MACROS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\file}[1]{\textbf{\texttt{#1}}}
\newcommand{\command}[1]{\textbf{\texttt{#1}}}
\renewcommand{\sc}[1]{\lstinline{#1}} % for 'source code' (\sc should not be used anyway)
\newcommand{\shell}[1]{\lstinline[language=bash,showspaces=true]{#1}}
\newcommand{\expected}[1]{\lstinline[showspaces=true]{"#1"}}
\newcommand{\class}[1]{\textsl{#1}}
\newcommand{\charterColor}[1]{\textcolor{\graphicChartColor}{#1}}
\newcommand{\coloredblock}[2]{\color{#1}#2\color{black}}
\newcommand{\email}[1]{\href{mailto:#1}{\texttt{<#1>}}}
% Don't break paragraphs!
\linepenalty=100
% Set color on *section titles
\allsectionsfont{\color{black}}
% Set proper spacing between list items.
\setlist{itemsep=1pt,topsep=2pt,partopsep=0pt,parsep=0pt,leftmargin=20pt}
\newcommand{\asterisk}[1]{\footnote{#1}\setcounter{footnote}{0}}
%% possibly buggy when multiple called:
\newcommand{\asterisktext}[1]{\footnotetext{#1}\setcounter{footnote}{0}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% PREAMBLE_NOBEAMER.TEX
%
% Loads definitions that are not already loaded by STD.TEX - NON-BEAMER
% specific.
%
% This file targets standard documents, that is non-Beamer documents, such as
% tutorials and subjects.
%
% Last updated by Thibaut Le Page <lepage_a@yaka.epita.fr> on May, 5th 2013.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{setspace} % set space amount between lines
\usepackage[cm]{fullpage} % don't waste space around pages
\usepackage{longtable}
%%% FONTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setmainfont[Ligatures={Common,Rare}]{LinLibertine}
\setsansfont[Ligatures=Common]{LinBiolinum}
%%% ASSISTANT VERSIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifdefined\assistantVersion
\newenvironment{assistant}[0]{%
\VerbatimEnvironment % assistant environment can contain verbatim
\begin{Sbox}
}{%
\end{Sbox}
\vskip\baselineskip\noindent
\fcolorbox{\graphicChartColor}{\graphicChartBackgroundColor}{%
\begin{minipage}[t]{\textwidth}
{\Large\bfseries\underline{Assistant}}\\
\TheSbox
\end{minipage}
}
\vskip\baselineskip
}
\newcommand{\assistantfile}[1]{%
\lstinputlisting[backgroundcolor=\graphicChartBackgroundColor]{#1}
}
\else
\newenvironment{assistant}[0]{%
\begin{Sbox}
}{%
\end{Sbox}
% We want to not disturb the text, so this line must be blank
{} % and this one, being the last one, 'skipped' like this.
}
\newcommand{\assistantfile}[1]{}
\fi
%%% MISC %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{apalike}
\newcounter{idRules}
\def\nbRule{\theidRules \stepcounter{idRules}}
\titlespacing{\section}{0pt}{2.5em}{0.66em}
\titlespacing{\subsection}{0pt}{1.5em}{0.5em}
\titlespacing{\subsubsection}{0pt}{1em}{0.4em}
\titlespacing{\paragraph}{0pt}{2ex}{1.2ex}