X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/44b8f845847505b81dc0f1199c49e67a495ed7a0..ad42c5f71154310efeb0bb918ec90ee38f421641:/BookGPU/Chapters/chapter6/ch6.tex diff --git a/BookGPU/Chapters/chapter6/ch6.tex b/BookGPU/Chapters/chapter6/ch6.tex index 79cd429..bc5ea3f 100755 --- a/BookGPU/Chapters/chapter6/ch6.tex +++ b/BookGPU/Chapters/chapter6/ch6.tex @@ -10,15 +10,18 @@ \def\Reals{\mathbb{R}} \definecolor{shadecolor}{rgb}{0.95,0.95,0.95} -\newenvironment{Algo}{\vspace{-1em}\begin{center}\begin{minipage}[h]{0.95\columnwidth}\begin{shaded}\begin{tabbing}% - \hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\= \kill} % - { \end{tabbing}\vspace{-1em}\end{shaded}\end{minipage}\end{center}\vspace{-1em}} +%\newenvironment{Algo}{\vspace{-1em}\begin{center}\begin{minipage}[h]{0.95\columnwidth}\begin{shaded}\begin{tabbing}% +% \hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\=\hspace{3mm}\= \kill} % +% { \end{tabbing}\vspace{-1em}\end{shaded}\end{minipage}\end{center}\vspace{-1em}} -\lstnewenvironment{Listing}[2]{\lstset{basicstyle=\scriptsize\ttfamily,% - breaklines=true, breakatwhitespace=true, language=C, keywordstyle=\color{black},% - prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},% - commentstyle=\textit, numbersep=1em, numberstyle=\tiny, numbers=left,% - numberblanklines=false, mathescape, escapechar=@, label=#1, caption={#2}}}{} +\lstnewenvironment{Listing}[2]{\lstset{ +%% basicstyle=\scriptsize\ttfamily,% +%% breaklines=true, breakatwhitespace=true, language=C, keywordstyle=\color{black},% +%% prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},% +%% commentstyle=\textit, numbersep=1em, numberstyle=\tiny, numbers=left,% +%% numberblanklines=false, mathescape, escapechar=@, + label=#1, caption={#2}} +}{} \def\N{$\mathbb N$ } \def\R{$\mathbb R$ }