Changeset 12 for trunk/tutorial/crealp-report.sty
- Timestamp:
- 02/20/13 15:41:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tutorial/crealp-report.sty
r9 r12 26 26 27 27 \usepackage{listings} 28 \usepackage{color} 29 30 \definecolor{dkgreen}{rgb}{0,0.6,0} 31 \definecolor{gray}{rgb}{0.5,0.5,0.5} 32 \definecolor{mauve}{rgb}{0.58,0,0.82} 28 33 29 34 %% nouvelle commande pour les listings %% 30 35 \newcommand{\crealplisting} [1]{ 31 \lstset{ 32 language=#1, 33 breaklines=true 34 basicstyle=\ttfamily 35 showstringspaces=false, 36 columns=fullflexible, 37 frame=leftline, 38 captionpos=b 39 } 36 \lstset{ % 37 backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor} 38 basicstyle=\footnotesize, % the size of the fonts that are used for the code 39 breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace 40 breaklines=true, % sets automatic line breaking 41 captionpos=b, % sets the caption-position to bottom 42 commentstyle=\color{dkgreen}, % comment style 43 deletekeywords={...}, % if you want to delete keywords from the given language 44 %escapeinside={\%*}{*)}, % if you want to add LaTeX within your code 45 %extendedchar=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8 46 frame=single, % adds a frame around the code 47 keywordstyle=\color{blue}, % keyword style 48 language=#1, % the language of the code 49 morekeywords={*,...}, % if you want to add more keywords to the set 50 numbers=left, % where to put the line-numbers; possible values are (none, left, right) 51 numbersep=5pt, % how far the line-numbers are from the code 52 numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers 53 rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here)) 54 showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces' 55 showstringspaces=false, % underline spaces within strings only 56 showtabs=false, % show tabs within strings adding particular underscores 57 stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered 58 stringstyle=\color{mauve}, % string literal style 59 tabsize=2, % sets default tabsize to 2 spaces 60 %title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title 61 } 40 62 } 41 63
Note: See TracChangeset
for help on using the changeset viewer.