0
|
1 %//////////////////////////////////////////////////////////////////////////////
|
|
2 %
|
|
3 % Copyright (c) 2007-2014 Daniel Adler <dadler@uni-goettingen.de>,
|
|
4 % Tassilo Philipp <tphilipp@potion-studios.com>
|
|
5 %
|
|
6 % Permission to use, copy, modify, and distribute this software for any
|
|
7 % purpose with or without fee is hereby granted, provided that the above
|
|
8 % copyright notice and this permission notice appear in all copies.
|
|
9 %
|
|
10 % THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11 % WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
12 % MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
13 % ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
14 % WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
15 % ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
16 % OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
17 %
|
|
18 %//////////////////////////////////////////////////////////////////////////////
|
|
19
|
|
20 % Set the normal line height for the entire document (some command depend on it).
|
|
21 \newcommand{\normallineheight}{10pt}
|
|
22 \documentclass[\normallineheight,a4paper]{article}
|
|
23
|
|
24
|
|
25 % Value multiplier.
|
|
26 \newlength\mrbraceheight
|
|
27 \newcommand{\tassimultiply}[2]{%
|
|
28 \setlength{\mrbraceheight}{0pt}%
|
|
29 \newcount\qq%
|
|
30 \qq=1 % Subtract 1 by starting at 1 .
|
|
31 \loop%
|
|
32 \addtolength\mrbraceheight{#2}%
|
|
33 \advance\qq by 1%
|
|
34 \ifnum\qq < #1 \repeat%
|
|
35 }
|
|
36
|
|
37
|
|
38 % Conditional if tex4ht is on or not
|
|
39 \newcommand{\ifhtml}[1]{%
|
|
40 \ifx\HCode\Undef \else%
|
|
41 #1%
|
|
42 \fi%
|
|
43 }
|
|
44 \newcommand{\ifnhtml}[1]{%
|
|
45 \ifx\HCode\Undef%
|
|
46 #1%
|
|
47 \fi%
|
|
48 }
|
|
49
|
|
50
|
|
51 % Packages.
|
|
52 \usepackage{a4wide}
|
|
53 \usepackage{multirow}
|
|
54 \usepackage{hhline}
|
|
55 \usepackage{color}
|
|
56 \usepackage{colortbl}
|
|
57 \usepackage{bigdelim}
|
|
58 \usepackage{rotating}
|
|
59 \usepackage{graphicx}
|
|
60 \usepackage{moreverb}
|
|
61 \usepackage{listings}
|
|
62 \usepackage{hyperref}
|
|
63 \ifnhtml{\usepackage{watermark}}
|
|
64
|
|
65
|
|
66 % Define own commands and style.
|
|
67 \newcommand{\dc}{\emph{dyncall}}
|
|
68 \newcommand{\capi}[1]{%
|
|
69 \noindent%
|
|
70 % \begin{verbatim}%
|
|
71 {\tt #1}%
|
|
72 % \end{verbatim}%
|
|
73 }
|
|
74 \newcommand{\tab}{\indent}
|
|
75
|
|
76 \newcommand{\shell}[1]{\noindent{\tt #1}}
|
|
77
|
|
78 % Multiline table row with left or right curly brace.
|
|
79 %\newcommand{\mrrbrace}[2]{\tassimultiply{#1}{5pt} \multirow{#1}{*}{$\smash{\left. {\vrule height 0pt depth \mrbraceheight width 0pt}\right\}}$#2}}
|
|
80 \newcommand{\mrrbrace}[2]{\rdelim\}{#1}{\normallineheight} \multirow{#1}{*}{#2} }
|
|
81 \newcommand{\mrlbrace}[2]{ \multirow{#1}{*}{#2} \ldelim\{{#1}{\normallineheight}}
|
|
82
|
|
83
|
|
84 \newcommand{\tablewidth}{130mm}
|
|
85 %\setlength{\oddsidemargin}{10mm}
|
|
86 %\setlength{\textwidth}{140mm}
|
|
87 %\setlength{\parindent}{0mm}
|
|
88 %\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
|
|
89
|
|
90 \newcommand{\ninetyb}{\begin{sideways}}
|
|
91 \newcommand{\ninetye}{\end{sideways}}
|
|
92
|
|
93 \renewcommand{\paragraph}[1]{%
|
|
94 \par\vspace{12pt}%
|
|
95 \noindent%
|
|
96 {\bf#1}%
|
|
97 \par%
|
|
98 \vspace{6pt}%
|
|
99 }%
|
|
100
|
|
101 % Set a watermark, but not when running htlatex
|
|
102 \ifnhtml{%
|
|
103 \watermark{%
|
|
104 \begingroup%
|
|
105 \setlength{\unitlength}{1mm}%
|
|
106 \begin{picture}(0,0)(32,300)%
|
|
107 \includegraphics[scale=1.0]{dyncall_watermark}%
|
|
108 \end{picture}%
|
|
109 \endgroup%
|
|
110 }%
|
|
111 }
|
|
112
|
|
113
|
|
114 % Use a sans-serif font.
|
|
115 \renewcommand{\familydefault}{\sfdefault}
|
|
116
|
|
117
|
|
118 \definecolor{defbkgd}{gray}{1.0}
|
|
119 \definecolor{gray1}{gray}{0.9}
|
|
120 \definecolor{gray2}{gray}{0.8}
|
|
121 \definecolor{gray3}{gray}{0.7}
|
|
122 \definecolor{gray4}{gray}{0.6}
|
|
123 \definecolor{lightgreen}{rgb}{0.0,1.0,0.0}
|
|
124 \definecolor{darkgreen}{rgb}{0.0,0.6,0.0}
|
|
125
|
|
126 % Define some column types for our colortables
|
|
127 \usepackage{array}
|
|
128
|
|
129 \newcommand{\cellcA}{}
|
|
130 \newcommand{\cellcB}{}
|
|
131 \newcommand{\cellcC}{}
|
|
132 \newcommand{\cellcD}{}
|
|
133 \newcolumntype{1}{l}
|
|
134 \newcolumntype{2}{l}
|
|
135 \newcolumntype{3}{l}
|
|
136 \newcolumntype{4}{l}
|
|
137 \newcolumntype{5}{r}
|
|
138 \newcolumntype{6}{r}
|
|
139 \newcolumntype{7}{r}
|
|
140 \newcolumntype{8}{r}
|
|
141 \newcolumntype{A}{p{\tablewidth}}
|
|
142 \newcolumntype{B}{p{\tablewidth}}
|
|
143 \newcolumntype{C}{p{\tablewidth}}
|
|
144 \newcolumntype{D}{p{\tablewidth}}
|
|
145
|
|
146 % listings package related settings
|
|
147
|
|
148 \lstset{captionpos=b}
|
|
149 \lstset{frame=tblr}
|
|
150 \lstset{frameround=tttt}
|
|
151 \lstset{basicstyle=\ttfamily}
|
|
152
|
|
153 % text building blocks
|
|
154 \newcommand{\group}[1]{{\it$<$#1$>$}}
|
|
155 \newcommand{\sigchar}[1]{'{\tt #1}'}
|
|
156 \newcommand{\sigstr}[1]{"{\tt #1}"}
|
|
157 \newcommand{\cenum}[1]{#1}
|
|
158 \newcommand{\product}[1]{\emph{#1}}
|
|
159
|
|
160 % colors used to signalize undefined, not used, supported, etc. states.
|
|
161 \newcommand{\marknull}{\cellcolor{white}}
|
|
162 \newcommand{\markcmpl}{\cellcolor{lightgreen}}
|
|
163 \newcommand{\markimpl}{\cellcolor{darkgreen}}
|
|
164 \newcommand{\marknimp}{\cellcolor{red}}
|
|
165 \newcommand{\markunkn}{\cellcolor{yellow}}
|
|
166 \newcommand{\marknotx}{\cellcolor{gray1}}
|
|
167
|
|
168
|
|
169 % table of contents config
|
|
170 \setcounter{tocdepth}{3}
|
|
171
|
|
172
|
|
173 \begin{document}
|
|
174
|
|
175 % html output options (that need to come after \begin{document})..
|
|
176 \ifhtml{
|
|
177 \Configure{tableofcontents*}{chapter}
|
|
178 }
|
|
179
|
|
180 % main document content -->
|
|
181 \input{manual_title}
|
|
182 \newpage
|
|
183 \tableofcontents
|
|
184 \newpage
|
|
185 \ifnhtml{
|
|
186 \listoftables
|
|
187 \listoffigures
|
|
188 \lstlistoflistings
|
|
189 }
|
|
190 \newpage
|
|
191 \input{manual_motivation}
|
|
192 \input{manual_overview}
|
|
193 \input{manual_build}
|
|
194 \input{manual_bindings}
|
|
195 \input{manual_design}
|
|
196 \input{manual_devel}
|
|
197 \input{manual_epilog}
|
|
198 \appendix
|
|
199 \addtocontents{toc}{\protect\pagebreak}
|
|
200 \input{manual_dyncall_api}
|
|
201 \input{manual_dyncallback_api}
|
|
202 \input{manual_dynload_api}
|
|
203 \input{manual_cc}
|
|
204 \input{manual_literature}
|
|
205 \end{document}
|