]> AND Private Git Repository - book_gpu.git/blob - BookGPU/Chapters/chapter5/preamble.tex
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
last font embedded pb corrected
[book_gpu.git] / BookGPU / Chapters / chapter5 / preamble.tex
1 %% \usepackage{pgfplots}
2 %% \usepackage{pgf}
3 %% \usepackage{tikz}
4 %% \usepackage{listings}
5 %% \usepackage{subfigure}
6 %% \usepackage{amsfonts,amssymb}
7 %% \usepackage{graphicx}
8
9 %\definecolor{lightgray}{rgb}{0.98,0.98,0.98}
10 %\definecolor{gray}{rgb}{0.3,0.3,0.3}
11
12 % lstlisting settings
13 %\lstset{language=c++, tabsize=4, extendedchars=false, numbers=left,stepnumber=1, breaklines=true, basicstyle=\scriptsize\ttfamily,commentstyle=\color{gray}\rm,frame=single,showstringspaces=false,morekeywords={HALF4, HALF3, float2, float3, float4, half, half2, half3, half4, tex2D,dim3, endif,threadIdx, blockIdx, blockDim, gridDim, Dim3, __host__, __global__,__shared__,float},backgroundcolor=\color{lightgray},keywordstyle=\bfseries\ttfamily,numberstyle=\tiny}
14
15 %\lstset{morekeywords={HALF4,HALF3,float2,float3,float4,half,half2,half3,half4,tex2D,dim3,endif,threadIdx,blockIdx,blockDim,gridDim,Dim3,__host__,__global__,__shared__,float}}
16
17
18 % This is for tikz/pgf plots
19 \usetikzlibrary{arrows,positioning,shapes,shadows}
20 %\usetikzlibrary{external}
21 %\tikzexternalize[prefix=tikz/]
22 \pgfplotsset{compat=newest}
23 \pgfplotsset{plot coordinates/math parser=false}
24 \newlength\figureheight
25 \newlength\figurewidth
26 \newcommand{\tikzfigure}[5]{                %
27 \begin{figure}[h!t]                         %
28 \begin{center}                              %
29 \setlength\figurewidth{#2\textwidth}        %
30 \setlength\figureheight{#3\textwidth}       %
31 \input{#1}                                  %
32 \caption{#4}\label{#5}                      %
33 \end{center}                                %
34 \end{figure}}
35
36 \tikzset{
37     %Define standard arrow tip
38     >=stealth',
39     %Define style for boxes
40     punkt/.style={
41            rectangle,
42            rounded corners,
43            draw=black, very thick,
44            text width=6.5em,
45            minimum height=2em,
46            text centered},
47     % Define arrow style
48     pil/.style={
49            ->,
50            thick,
51            shorten <=2pt,
52            shorten >=2pt,}
53 }
54
55 %\newcommand{\todo}[1]{\textcolor[rgb]{0.88,0.00,0.00}{Todo: #1}}
56 %\newcommand{\stefan}[1]{\textcolor[rgb]{0.66,0.66,0.22}{Stefan says: #1}}
57 %\newcommand{\allan}[1]{\textcolor[rgb]{0.88,0.00,0.88}{Allan says: #1}}
58 %\newcommand{\bernd}[1]{\textcolor[rgb]{0.00,0.88,0.88}{Bernd says: #1}}
59
60 % Math stuff
61