X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/04b31df6519ed76ed92facfecdde6771593395fd..fc4670d0de6814f682df0ce247905cba40b9d547:/BookGPU/BookGPU.tex?ds=inline diff --git a/BookGPU/BookGPU.tex b/BookGPU/BookGPU.tex index 1d122ea..a144a18 100755 --- a/BookGPU/BookGPU.tex +++ b/BookGPU/BookGPU.tex @@ -6,6 +6,10 @@ \usepackage{subfigure} %\usepackage{epsfig} \usepackage{makeidx} +\usepackage{listings} +\usepackage{caption} +\usepackage{courier} +\usepackage{color} \usepackage[sectionbib]{bibunits} \usepackage{multicol} \frenchspacing @@ -18,6 +22,52 @@ \makeatother + + + + \lstset{ + basicstyle=\footnotesize\ttfamily, % Standardschrift + %numbers=left, % Ort der Zeilennummern + numberstyle=\tiny, % Stil der Zeilennummern + %stepnumber=2, % Abstand zwischen den Zeilennummern + numbersep=5pt, % Abstand der Nummern zum Text + tabsize=2, % Groesse von Tabs + extendedchars=true, % + breaklines=true, % Zeilen werden Umgebrochen + keywordstyle=\color{red}, + frame=b, + % keywordstyle=[1]\textbf, % Stil der Keywords + % keywordstyle=[2]\textbf, % + % keywordstyle=[3]\textbf, % + % keywordstyle=[4]\textbf, \sqrt{\sqrt{}} % + stringstyle=\color{white}\ttfamily, % Farbe der String + showspaces=false, % Leerzeichen anzeigen ? + showtabs=false, % Tabs anzeigen ? + xleftmargin=17pt, + framexleftmargin=17pt, + framexrightmargin=5pt, + framexbottommargin=4pt, + %backgroundcolor=\color{lightgray}, + showstringspaces=false % Leerzeichen in Strings anzeigen ? + } + \lstloadlanguages{% Check Dokumentation for further languages ... + %[Visual]Basic + %Pascal + C + %C++ + %XML + %HTML + %Java + } + %\DeclareCaptionFont{blue}{\color{blue}} + + %\captionsetup[lstlisting]{singlelinecheck=false, labelfont={blue}, textfont={blue}} +\DeclareCaptionFont{white}{\color{white}} +\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}} +\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}} + + + \makeindex \begin{document}