2 \documentclass[english,a4paper,11pt,oldtoc,mctitle]{rapport3}
3 \RequirePackage{ifthen}
7 \usepackage[latin1]{inputenc}
8 \usepackage[T1]{fontenc}
14 \usepackage[nottoc]{tocbibind}
15 \usepackage{enumerate}
18 \usepackage[a4paper,margin=3cm]{geometry}
22 \usepackage[pdftex]{hyperref}
24 \usepackage[hypertex]{hyperref}
34 \providecommand{\note}[1]{\color{red}**#1**}%
35 \providecommand{\file}[1]{\mbox{\emph{#1}}}%
36 \providecommand{\type}[1]{#1}%
37 \providecommand{\spec}[1]{#1}%
38 \providecommand{\indextype}[1]{\index{#1@#1}}
41 \providecommand{\key}[1]{\textbf{#1}}%
42 \providecommand{\code}[1]{\texttt{#1}}%
43 \providecommand{\codestr}[1]{`\texttt{#1}'}%
44 \providecommand{\var}[1]{\texttt{#1}}%
45 \providecommand{\command}[1]{\texttt{#1}}
48 \providecommand{\hyperlabel}[1]{\label{#1}}%
49 \providecommand{\fnref}[1]{\htmlref{\texttt{#1}}{fn:#1}}%
50 \providecommand{\fnrefx}[2]{\htmlref{\texttt{#2}}{fn:#1.#2}}%
51 \providecommand{\myhref}[2]{\htmlref{#2}{#1}}
54 \providecommand{\tabhead}[1]{\hline #1 \\\hline}
59 \newenvironment{function}{
66 \providecommand{\synopsis}[1]{
67 \item[Synopsis:] \texttt{#1}
69 \providecommand{\funcname}[1]{
70 \item[Function:] \texttt{#1}
72 \providecommand{\hookname}[1]{
73 \item[Hook name:] \label{#1}\texttt{#1}
75 \providecommand{\hookparams}[1]{
76 \item[Parameters:] \texttt{#1}
80 \newenvironment{funcdesc}{
87 \providecommand{\xchapter}[1]{\chapter{#1}}%
88 \providecommand{\xsection}[1]{\section{#1}}%
89 \providecommand{\xsectionstar}[1]{\section*{#1}}%
90 \providecommand{\xsubsection}[1]{\subsection{#1}}
93 \title{Configuring and extending Ion3 with Lua}
94 \author{Tuomo Valkonen \\tuomov at iki.fi}
103 \usepackage[dvips]{color}
108 \usepackage[latin1]{inputenc}
115 \count@=\the\catcode`\_ \catcode`\_=8
116 \newenvironment{tex2html_wrap}{}{}%
117 \catcode`\<=12\catcode`\_=\count@
118 \newcommand{\providedcommand}[1]{\expandafter\providecommand\csname #1\endcsname}%
119 \newcommand{\renewedcommand}[1]{\expandafter\providecommand\csname #1\endcsname{}%
120 \expandafter\renewcommand\csname #1\endcsname}%
121 \newcommand{\newedenvironment}[1]{\newenvironment{#1}{}{}\renewenvironment{#1}}%
122 \let\newedcommand\renewedcommand
123 \let\renewedenvironment\newedenvironment
127 \ifx\AtBeginDocument\undefined \newcommand{\AtBeginDocument}[1]{}\fi
129 \setlength{\hoffset}{0pt}\setlength{\voffset}{0pt}
130 \addtolength{\textheight}{\footskip}\setlength{\footskip}{0pt}
131 \addtolength{\textheight}{\topmargin}\setlength{\topmargin}{0pt}
132 \addtolength{\textheight}{\headheight}\setlength{\headheight}{0pt}
133 \addtolength{\textheight}{\headsep}\setlength{\headsep}{0pt}
134 \setlength{\textwidth}{349pt}
135 \newwrite\lthtmlwrite
137 \let\realnormalsize=\normalsize
139 \def\preveqno{}\let\real@float=\@float \let\realend@float=\end@float
140 \def\@float{\let\@savefreelist\@freelist\real@float}
141 \def\liih@math{\ifmmode$\else\bad@math\fi}
142 \def\end@float{\realend@float\global\let\@freelist\@savefreelist}
143 \let\real@dbflt=\@dbflt \let\end@dblfloat=\end@float
144 \let\@largefloatcheck=\relax
145 \let\if@boxedmulticols=\iftrue
146 \def\@dbflt{\let\@savefreelist\@freelist\real@dbflt}
147 \def\adjustnormalsize{\def\normalsize{\mathsurround=0pt \realnormalsize
148 \parindent=0pt\abovedisplayskip=0pt\belowdisplayskip=0pt}%
149 \def\phantompar{\csname par\endcsname}\normalsize}%
150 \def\lthtmltypeout#1{{\let\protect\string \immediate\write\lthtmlwrite{#1}}}%
151 \newcommand\lthtmlhboxmathA{\adjustnormalsize\setbox\sizebox=\hbox\bgroup\kern.05em }%
152 \newcommand\lthtmlhboxmathB{\adjustnormalsize\setbox\sizebox=\hbox to\hsize\bgroup\hfill }%
153 \newcommand\lthtmlvboxmathA{\adjustnormalsize\setbox\sizebox=\vbox\bgroup %
154 \let\ifinner=\iffalse \let\)\liih@math }%
155 \newcommand\lthtmlboxmathZ{\@next\next\@currlist{}{\def\next{\voidb@x}}%
156 \expandafter\box\next\egroup}%
157 \newcommand\lthtmlmathtype[1]{\gdef\lthtmlmathenv{#1}}%
158 \newcommand\lthtmllogmath{\dimen0\ht\sizebox \advance\dimen0\dp\sizebox
159 \ifdim\dimen0>.95\vsize
161 *** image for \lthtmlmathenv\space is too tall at \the\dimen0, reducing to .95 vsize ***}%
162 \ht\sizebox.95\vsize \dp\sizebox\z@ \fi
163 \lthtmltypeout{l2hSize %
164 :\lthtmlmathenv:\the\ht\sizebox::\the\dp\sizebox::\the\wd\sizebox.\preveqno}}%
165 \newcommand\lthtmlfigureA[1]{\let\@savefreelist\@freelist
166 \lthtmlmathtype{#1}\lthtmlvboxmathA}%
167 \newcommand\lthtmlpictureA{\bgroup\catcode`\_=8 \lthtmlpictureB}%
168 \newcommand\lthtmlpictureB[1]{\lthtmlmathtype{#1}\egroup
169 \let\@savefreelist\@freelist \lthtmlhboxmathB}%
170 \newcommand\lthtmlpictureZ[1]{\hfill\lthtmlfigureZ}%
171 \newcommand\lthtmlfigureZ{\lthtmlboxmathZ\lthtmllogmath\copy\sizebox
172 \global\let\@freelist\@savefreelist}%
173 \newcommand\lthtmldisplayA{\bgroup\catcode`\_=8 \lthtmldisplayAi}%
174 \newcommand\lthtmldisplayAi[1]{\lthtmlmathtype{#1}\egroup\lthtmlvboxmathA}%
175 \newcommand\lthtmldisplayB[1]{\edef\preveqno{(\theequation)}%
176 \lthtmldisplayA{#1}\let\@eqnnum\relax}%
177 \newcommand\lthtmldisplayZ{\lthtmlboxmathZ\lthtmllogmath\lthtmlsetmath}%
178 \newcommand\lthtmlinlinemathA{\bgroup\catcode`\_=8 \lthtmlinlinemathB}
179 \newcommand\lthtmlinlinemathB[1]{\lthtmlmathtype{#1}\egroup\lthtmlhboxmathA
180 \vrule height1.5ex width0pt }%
181 \newcommand\lthtmlinlineA{\bgroup\catcode`\_=8 \lthtmlinlineB}%
182 \newcommand\lthtmlinlineB[1]{\lthtmlmathtype{#1}\egroup\lthtmlhboxmathA}%
183 \newcommand\lthtmlinlineZ{\egroup\expandafter\ifdim\dp\sizebox>0pt %
184 \expandafter\centerinlinemath\fi\lthtmllogmath\lthtmlsetinline}
185 \newcommand\lthtmlinlinemathZ{\egroup\expandafter\ifdim\dp\sizebox>0pt %
186 \expandafter\centerinlinemath\fi\lthtmllogmath\lthtmlsetmath}
187 \newcommand\lthtmlindisplaymathZ{\egroup %
188 \centerinlinemath\lthtmllogmath\lthtmlsetmath}
189 \def\lthtmlsetinline{\hbox{\vrule width.1em \vtop{\vbox{%
190 \kern.1em\copy\sizebox}\ifdim\dp\sizebox>0pt\kern.1em\else\kern.3pt\fi
191 \ifdim\hsize>\wd\sizebox \hrule depth1pt\fi}}}
192 \def\lthtmlsetmath{\hbox{\vrule width.1em\kern-.05em\vtop{\vbox{%
193 \kern.1em\kern0.8 pt\hbox{\hglue.17em\copy\sizebox\hglue0.8 pt}}\kern.3pt%
194 \ifdim\dp\sizebox>0pt\kern.1em\fi \kern0.8 pt%
195 \ifdim\hsize>\wd\sizebox \hrule depth1pt\fi}}}
196 \def\centerinlinemath{%
197 \dimen1=\ifdim\ht\sizebox<\dp\sizebox \dp\sizebox\else\ht\sizebox\fi
198 \advance\dimen1by.5pt \vrule width0pt height\dimen1 depth\dimen1
199 \dp\sizebox=\dimen1\ht\sizebox=\dimen1\relax}
201 \def\lthtmlcheckvsize{\ifdim\ht\sizebox<\vsize
202 \ifdim\wd\sizebox<\hsize\expandafter\hfill\fi \expandafter\vfill
203 \else\expandafter\vss\fi}%
204 \providecommand{\selectlanguage}[1]{}%
205 \makeatletter \tracingstats = 1
209 \pagestyle{empty}\thispagestyle{empty}\lthtmltypeout{}%
210 \lthtmltypeout{latex2htmlLength hsize=\the\hsize}\lthtmltypeout{}%
211 \lthtmltypeout{latex2htmlLength vsize=\the\vsize}\lthtmltypeout{}%
212 \lthtmltypeout{latex2htmlLength hoffset=\the\hoffset}\lthtmltypeout{}%
213 \lthtmltypeout{latex2htmlLength voffset=\the\voffset}\lthtmltypeout{}%
214 \lthtmltypeout{latex2htmlLength topmargin=\the\topmargin}\lthtmltypeout{}%
215 \lthtmltypeout{latex2htmlLength topskip=\the\topskip}\lthtmltypeout{}%
216 \lthtmltypeout{latex2htmlLength headheight=\the\headheight}\lthtmltypeout{}%
217 \lthtmltypeout{latex2htmlLength headsep=\the\headsep}\lthtmltypeout{}%
218 \lthtmltypeout{latex2htmlLength parskip=\the\parskip}\lthtmltypeout{}%
219 \lthtmltypeout{latex2htmlLength oddsidemargin=\the\oddsidemargin}\lthtmltypeout{}%
221 \if@twoside\lthtmltypeout{latex2htmlLength evensidemargin=\the\evensidemargin}%
222 \else\lthtmltypeout{latex2htmlLength evensidemargin=\the\oddsidemargin}\fi%
228 % !!! IMAGES START HERE !!!
230 \stepcounter{chapter}
231 \stepcounter{chapter}
232 \stepcounter{section}
233 \stepcounter{section}
234 \stepcounter{subsection}
235 \stepcounter{subsection}
236 \stepcounter{subsubsection}
237 \stepcounter{subsubsection}
238 \stepcounter{subsection}
239 \stepcounter{chapter}
240 \stepcounter{section}
241 \stepcounter{section}
242 \stepcounter{section}
244 \lthtmlinlinemathA{tex2html_wrap_inline1123}%
247 \lthtmlcheckvsize\clearpage}
249 \stepcounter{subsection}
250 \stepcounter{subsection}
251 \stepcounter{subsection}
252 \stepcounter{subsection}
253 \stepcounter{subsection}
255 \lthtmlinlinemathA{tex2html_wrap_inline1127}%
258 \lthtmlcheckvsize\clearpage}
260 \stepcounter{subsection}
261 \stepcounter{subsection}
262 \stepcounter{section}
263 \stepcounter{subsection}
264 \stepcounter{subsection}
265 \stepcounter{subsection}
266 \stepcounter{subsection}
267 \stepcounter{section}
270 \newedenvironment{winprop}[2]{
274 \item[Winprop:] \texttt{#1} (#2)
282 \stepcounter{subsection}
283 \stepcounter{subsection}
284 \stepcounter{subsection}
285 \stepcounter{subsection}
286 \stepcounter{subsubsection}
287 \stepcounter{subsubsection}
288 \stepcounter{section}
289 \stepcounter{subsection}
290 \stepcounter{subsection}
291 \stepcounter{subsection}
292 \stepcounter{subsubsection}
293 \stepcounter{subsubsection}
294 \stepcounter{subsubsection}
295 \stepcounter{chapter}
296 \stepcounter{section}
297 \stepcounter{subsection}
298 \stepcounter{subsubsection}
299 \stepcounter{subsubsection}
300 \stepcounter{subsubsection}
301 \stepcounter{section}
302 \stepcounter{subsection}
303 \stepcounter{subsection}
304 \stepcounter{subsubsection}
305 \stepcounter{subsubsection}
306 \stepcounter{subsubsection}
307 \stepcounter{subsubsection}
308 \stepcounter{subsubsection}
309 \stepcounter{subsection}
310 \stepcounter{section}
311 \stepcounter{subsection}
312 \stepcounter{subsection}
314 \lthtmlinlinemathA{tex2html_wrap_inline2328}%
317 \lthtmlcheckvsize\clearpage}
319 \stepcounter{subsection}
320 \stepcounter{chapter}
321 \stepcounter{section}
322 \stepcounter{section}
323 \stepcounter{subsection}
324 \stepcounter{subsection}
325 \stepcounter{section}
326 \stepcounter{section}
327 \stepcounter{chapter}
328 \stepcounter{section}
329 \stepcounter{subsection}
330 \stepcounter{subsection}
331 \stepcounter{subsection}
332 \stepcounter{subsection}
333 \stepcounter{subsection}
334 \stepcounter{subsection}
335 \stepcounter{subsection}
336 \stepcounter{subsection}
338 \lthtmlinlinemathA{tex2html_wrap_inline5624}%
341 \lthtmlcheckvsize\clearpage}
344 \lthtmlinlinemathA{tex2html_wrap_inline5626}%
347 \lthtmlcheckvsize\clearpage}
349 \stepcounter{subsection}
350 \stepcounter{subsection}
351 \stepcounter{subsection}
352 \stepcounter{subsection}
353 \stepcounter{subsection}
354 \stepcounter{subsection}
355 \stepcounter{subsection}
356 \stepcounter{subsection}
357 \stepcounter{subsection}
358 \stepcounter{subsection}
359 \stepcounter{section}
360 \stepcounter{subsection}
361 \stepcounter{subsection}
362 \stepcounter{subsection}
363 \stepcounter{subsection}
364 \stepcounter{subsection}
365 \stepcounter{section}
366 \stepcounter{subsection}
367 \stepcounter{subsection}
368 \stepcounter{subsection}
369 \stepcounter{section}
370 \stepcounter{subsection}
371 \stepcounter{section}
372 \stepcounter{subsection}
374 \lthtmlinlinemathA{tex2html_wrap_inline7889}%
375 $\{t,m,b\}\times\{t,c,b\}$%
377 \lthtmlcheckvsize\clearpage}
379 \stepcounter{section}
380 \stepcounter{section}
381 \stepcounter{subsection}
382 \stepcounter{section}
383 \stepcounter{section}
384 \stepcounter{section}
385 \stepcounter{subsection}
387 \stepcounter{chapter}
388 \stepcounter{chapter}
391 \providecommand{\fnlisti}[1]{\htmlref{\texttt{#1}}{fn:#1}\\}%