| 1 |
%% This file is part of the method-distribution |
| 2 |
%% -------------------------------------------- |
| 3 |
%% |
| 4 |
%% It may be distributed under the terms of the LaTeX Project Public |
| 5 |
%% License, as described in lppl.txt in the base LaTeX distribution. |
| 6 |
%% Either version 1.0 or, at your option, any later version. |
| 7 |
%% |
| 8 |
\documentclass{book} |
| 9 |
\usepackage[french]{method} |
| 10 |
\begin{document} |
| 11 |
Als erstes eine Methode: |
| 12 |
|
| 13 |
\begin{method} |
| 14 |
\head{int div(int a, int b, double \&c);} |
| 15 |
\para{a}{Dividend} |
| 16 |
\para{b}{Divisor} |
| 17 |
\para{\&c}{Ergebnis der Division} |
| 18 |
\precond{keine} |
| 19 |
\descr{Dividiert \texttt{a} durch \texttt{b} und legt |
| 20 |
das Ergebnis in \texttt{c} ab.} |
| 21 |
\postcond{keine} |
| 22 |
\error{keine} |
| 23 |
\return{\texttt{-1}, falls \texttt{b==0}, sonst \texttt{0}} |
| 24 |
\see{Duden der Mathematik} |
| 25 |
\end{method} |
| 26 |
% |
| 27 |
|
| 28 |
Noch eine Methode |
| 29 |
|
| 30 |
\begin{method} |
| 31 |
\headtabbed{PrimObject(} |
| 32 |
\headpara{const Matrix transformation,} |
| 33 |
\headpara{AbstGeometry *geometry = 0,} |
| 34 |
\headpara{MaterialApplication *material = 0,} |
| 35 |
\headpara{AbstBumpMap *bumpMap = 0,} |
| 36 |
\headpara{Distribution *distribution = 0);} |
| 37 |
\para{transformation}{Transformationsmatrix} |
| 38 |
\para{*geometry}{\ldots} |
| 39 |
\descr{\ldots} |
| 40 |
\end{method} |
| 41 |
% |
| 42 |
|
| 43 |
Jetzt eine Variable |
| 44 |
|
| 45 |
\begin{data} |
| 46 |
\head{char *name} |
| 47 |
\descr{Name des Teilnehmers} |
| 48 |
\end{data} |
| 49 |
\begin{data} |
| 50 |
\head{char *no} |
| 51 |
\descr{Telefonnummer des Teilnehmers} |
| 52 |
\see{Amtliches Telefonbuch} |
| 53 |
\end{data} |
| 54 |
\end{document} |