From 9dc7bc0eb1549d0e3e387280b7489dfc9fd76363 Mon Sep 17 00:00:00 2001 From: "random-toto@localhost" Date: Tue, 14 Jun 2016 14:33:36 +0200 Subject: [PATCH] ajout exemple coloration code C avec lstlistings. --- tex/rapport.tex | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tex/rapport.tex b/tex/rapport.tex index 7a2d099..b857636 100644 --- a/tex/rapport.tex +++ b/tex/rapport.tex @@ -65,6 +65,28 @@ % columns=fullflexible %} +%\lstset{language=C, +% columns=fullflexible, +% basicstyle=\ttfamily\small, +% basicstyle=\ttfamily\footnotesize, +% keywordstyle=\color{blue}\ttfamily, +% emph=[1]{ssize_t,for,uint_8,uint_16,wchar_t}, +% emphstyle=[1]{\color{blue}\bfseries}, +% emph=[2]{true,false,bool}, +% emphstyle=[2]{\color{purple}\bfseries}, +% emph=[3]{strcpy,sprintf,gets,strcat,lstrcat,scanf,strlen,atoi,atof,atol,getwd,realpath}, +% emphstyle=[3]{\color{YellowOrange}\bfseries}, +% stringstyle=\color{red}\ttfamily, +% commentstyle=\color{Green}\ttfamily, +% showstringspaces=false +% extendedchars=true, +% literate={á}{{\'a}}1 {ã}{{\~a}}1 {é}{{\'e}}1 {è}{{\`e}}1 {à}{{\`a}}1 {î}{{\^i}}1, +% keepspaces=true, +% captionpos=b, +% frame=single, +%} + + % save footnotes \makesavenoteenv{tabular}