diff --git a/main.pdf b/main.pdf index 60e9a49..dafe0cb 100644 Binary files a/main.pdf and b/main.pdf differ diff --git a/main.tex b/main.tex index e5b7329..0ca4348 100644 --- a/main.tex +++ b/main.tex @@ -26,7 +26,31 @@ \hypersetup{urlcolor=red} % Code style -% \usepackage{minted} +\usepackage{xcolor} +\usepackage{listings} + \definecolor{codegreen}{rgb}{0,0.6,0} + \definecolor{codegray}{rgb}{0.5,0.5,0.5} + \definecolor{codepurple}{rgb}{0.58,0,0.82} + \definecolor{backcolour}{rgb}{0.95,0.95,0.92} + \lstdefinestyle{mystyle}{ + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen}, + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, + basicstyle=\ttfamily\footnotesize, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=2 + } + \lstset{style=mystyle} % Multifiles \usepackage[subpreambles=true]{standalone} @@ -51,7 +75,7 @@ \centering \includegraphics[width=0.8\textwidth]{images/iut-logo.png} \newline - \vskip100pt + \vskip140pt \bfseries SAE 2.02 \vskip3pt diff --git a/sections/partie1.tex b/sections/partie1.tex index 41eeca9..6a49fc9 100644 --- a/sections/partie1.tex +++ b/sections/partie1.tex @@ -2,23 +2,15 @@ \documentclass[class=article, crop=false]{standalone} -\usepackage[subpreambles=true]{standalone} -%\usepackage{listings} \begin{document} - -\section{Partie 1} + \section{Partie 1} \subsection{Question 1} - % insert struct code here -% \begin{minted}[linenos]{c} -% typedef struct pointCaracteristique { -% char nom[NAME_MAX_LEN]; -% struct pointCaracteristique *tPtsCaract; -% } PointCaracteristique; -% \end{lstlisting} + \quad Pour représenter ce réseaux, je propose la structure de données suivante : + \lstinputlisting[language=C,firstline=16,lastline=19]{code/p1e1.c} \subsection{Question 2} \quad Un point caractéristique n'a besoin de connaître que les points qu'il peut atteindre. - + \end{document} \ No newline at end of file