fix code import

part1
Alexandre AGOSTINHO 2 years ago
parent dfa09e7503
commit 7b84beabed

Binary file not shown.

@ -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

@ -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}
Loading…
Cancel
Save