travaux
This commit is contained in:
parent
761d26d48b
commit
160e486e88
250 changed files with 5 additions and 12 deletions
22
cnam/blanc/présentation/listings.tex
Normal file
22
cnam/blanc/présentation/listings.tex
Normal file
|
@ -0,0 +1,22 @@
|
|||
\newcommand{\listing}[4]{\subsection{#1}\begin{frame}
|
||||
{\bititle\\Présentation / Fichiers / #1}\centering#4
|
||||
\lstinputlisting[language={#2}]{#3}\end{frame}}
|
||||
%⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||
\newcommand{\sublistex}[3]{
|
||||
\listing{#1}{[LaTeX]TeX}{présentation/#2}{#3}}
|
||||
%⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||
\lstdefinelanguage{rst}{keywords={download,literalinclude}}
|
||||
%⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅
|
||||
\definecolor{bg}{rgb}{.92,.92,.92}
|
||||
\definecolor{cm}{rgb}{.1,.6,.1}
|
||||
\definecolor{kw}{rgb}{.8,.1,.1}
|
||||
\definecolor{str}{rgb}{.1,.1,.8}
|
||||
\lstset{
|
||||
basicstyle=\ttfamily\scriptsize,
|
||||
numbers=left,
|
||||
numbersep=.5em,
|
||||
%backgroundcolor=\color{bg},
|
||||
commentstyle=\color{cm},
|
||||
keywordstyle=\color{kw},
|
||||
stringstyle=\color{str},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue