2 \usepackage[latin1]{inputenc}
3 \usepackage[dvipdfm]{hyperref}
12 \usepackage[nottoc]{tocbibind}
13 \usepackage{enumerate} % GNU FDL needs this
14 \usepackage[a4paper]{geometry}
18 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
21 \newcommand{\centerurl}[1]{\begin{center}\url{#1}\end{center}}
24 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
41 \newcommand{\note}[1]{\color{red}**#1**}
42 \newcommand{\file}[1]{\emph{#1}}
43 \newcommand{\type}[1]{#1}
44 \newcommand{\spec}[1]{#1}
45 \newcommand{\indextype}[1]{\index{#1@\type{#1}}}
48 \newcommand{\key}[1]{\mbox{\textbf{#1}}}
49 \newcommand{\code}[1]{\lstinline!#1!}
50 \newcommand{\var}[1]{\lstinline!#1!}
51 \newcommand{\command}[1]{\lstinline!#1!}
53 \newcommand{\hyperlabel}[1]{\hypertarget{#1}{}\label{#1}}
54 \newcommand{\fnrefx}[2]{\hyperlink{fn:#1.#2}{\code{#2}}}
55 \newcommand{\fnref}[1]{\hyperlink{fn:#1}{\code{#1}}}
56 \newcommand{\myhref}[2]{\hyperlink{#1}{#2}}
61 \newcommand{\key}[1]{\textbf{#1}}
62 \newcommand{\code}[1]{\texttt{#1}}
63 \newcommand{\var}[1]{\texttt{#1}}
64 \newcommand{\command}[1]{\texttt{#1}}
66 \newcommand{\hyperlabel}[1]{\label{#1}}
67 \newcommand{\fnref}[1]{\htmlref{\texttt{#1}}{fn:#1}}
68 \newcommand{\fnrefx}[2]{\htmlref{\texttt{#2}}{fn:#1.#2}}
69 \newcommand{\myhref}[2]{\htmlref{#2}{#1}}
73 \newcommand{\tabhead}[1]{\hline #1 \\ \hline}
76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
80 \newcommand{\funclistlabel}[1]{#1\hfill}
81 \newenvironment{function}{
84 \settowidth{\labelwidth}{Description:}
85 \setlength{\leftmargin}{\labelwidth}
86 \addtolength{\leftmargin}{0.5em}
87 \setlength{\labelsep}{0.5em}
88 \setlength{\itemsep}{0pt}
89 \setlength\parsep{0pt}
90 \setlength\topsep{0pt}
91 %\setlength{\itemsep}{-\parskip}
92 %\addtolength{\itemsep}{\lineskip}
93 \let\makelabel\funclistlabel
102 \newenvironment{function}{
111 \newcommand{\synopsis}[1]{
112 \item[Synopsis:] \code{#1}
114 \newcommand{\funcname}[1]{
115 \item[Function:] \code{#1}
117 \newcommand{\hookname}[1]{
118 \item[Hook name:] \hyperlabel{#1}\code{#1}
120 \newcommand{\hookparams}[1]{
121 \item[Parameters:] \code{#1}
123 \newenvironment{funcdesc}{
128 % While rapport3/artikel3 are otherwise nice classes,
129 % itemize looks awful.
130 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
133 \renewenvironment{itemize}{%
134 \ifnum \@itemdepth >3
137 \advance\@itemdepth \@ne
138 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
139 \list{\csname\@itemitem\endcsname}%
142 \def\makelabel##1{\hskip .5\unitindent{\hfil ##1}}\else
144 \def\makelabel##1{\hfil ##1}
149 {\global\@ignoretrue \endlist}