X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/book_gpu.git/blobdiff_plain/44b8f845847505b81dc0f1199c49e67a495ed7a0..1ac5b5a535d9154c4f080e94f2f9a49ab6e299b7:/BookGPU/Chapters/chapter6/ch6.tex?ds=sidebyside diff --git a/BookGPU/Chapters/chapter6/ch6.tex b/BookGPU/Chapters/chapter6/ch6.tex index 79cd429..676da7b 100755 --- a/BookGPU/Chapters/chapter6/ch6.tex +++ b/BookGPU/Chapters/chapter6/ch6.tex @@ -9,18 +9,20 @@ \newcommand{\Equ}[1]{(\ref{#1})} \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\N{$\mathbb N$ } \def\R{$\mathbb R$ } \def\Z{$\mathbb Z$ } \def\Q{$\mathbb Q$ }