Compte Rendu TP Ecole Navale
Autor
D. Brosset
Last Updated
hace 5 años
License
Creative Commons CC BY 4.0
Resumen
Compte rendu de TP
Compte rendu de TP
\documentclass[french,a4paper,11pt]{article}
\usepackage{datetime}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{graphicx,algorithmic,algorithm}
\usepackage{color}
\usepackage{listings,url}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[L]{}
\title{\vspace{-2cm}\centering\includegraphics[width=6cm]{logoEN.pdf} \\\textbf{Titre du TP}}
\author{ Votre Nom }
\date{Rédigé le \today\ à \currenttime}
\renewcommand{\lstlistingname}{Source}
\floatname{algorithm}{Algorithme}
\lstdefinestyle{Bash}
{language=bash,
keywordstyle=\color{blue},
basicstyle=\ttfamily,
alsoletter={:~\#},
keywordstyle=[2]{\color{red}},
literate={\$}{{\textcolor{red}{\$}}}1
{:}{{\textcolor{red}{:}}}1
{~}{{\textcolor{red}{\textasciitilde}}}1,
}
\lstdefinelanguage{NetLogo}{
breaklines=true,
breakatwhitespace=true,
alsoletter={-,?,.},
morekeywords=[1]{to, to-report, end},
keywordstyle=[1]\color[rgb]{0.25,0.5,0.35},
morekeywords=[2]{ask, let, set, if, report, ifelse},
keywordstyle=[2]\color{blue},
morekeywords=[3]{not, n-of, color},
keywordstyle=[3]\color[rgb]{0.6,0,0.8},
numberstyle=\color{red},
comment=[l]{\;},
commentstyle=\color[rgb]{0.75,0.75,0.75},
string=[d]{"},
stringstyle=\color{blue},
morekeywords=[4]{1, 2, 3, 4, 5, 6, 7, 8, 9, 0, true, false},
keywordstyle=[4]{\color{blue}},
}
\begin{document}
\maketitle
\vspace{-1cm}
\section*{Exercice 1}
\subsection*{Question 1}
\begin{lstlisting}[style=Bash,caption={Exemple d'insertion de code en Bash},captionpos=b]
root@kali:~# man ls
\end{lstlisting}
\begin{lstlisting}[language=NetLogo,caption={Exemple d'insertion de code NetLogo},captionpos=b]
to setup
clear-all
end
\end{lstlisting}
\section*{Exercice 2}
\subsection*{Question 1}
\section*{Avis sur le TP}
\end{document}