From e32eca2ca07d349f5038a425fb464d34e01dd53d Mon Sep 17 00:00:00 2001 From: "random-toto@localhost" Date: Mon, 13 Jun 2016 14:42:31 +0200 Subject: [PATCH] code source avec couleur, copiable --- tex/rapport.tex | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tex/rapport.tex b/tex/rapport.tex index 7524e97..7a2d099 100644 --- a/tex/rapport.tex +++ b/tex/rapport.tex @@ -51,6 +51,19 @@ % listings : \begin,end : lstlisting in blue \lstset{basicstyle=\ttfamily\color{blue}} +% lstlistings pour du code : +%\lstset{language=C++, +% basicstyle=\ttfamily\small, +% keywordstyle=\color{blue}\ttfamily, +% stringstyle=\color{red}\ttfamily, +% commentstyle=\color{green}\ttfamily, +% morecomment=[l][\color{magenta}]{\#}, +% showstringspaces=false +% inputencoding=utf8, +% extendedchars=true, +% literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {è}{{\`e}}1, +% columns=fullflexible +%} % save footnotes \makesavenoteenv{tabular}