| 1 |
%% |
| 2 |
%% This is file `struktxp-tst-00.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% struktex.dtx (with options: `struktxp-00') |
| 8 |
%% |
| 9 |
\documentclass{article} |
| 10 |
|
| 11 |
\usepackage{index} % produce the index afterwards with the command |
| 12 |
% makeindex -o struktxp-tst-00.ind struktxp-tst-00.idx |
| 13 |
\usepackage{struktxp} |
| 14 |
|
| 15 |
\makeindex |
| 16 |
|
| 17 |
\makeatletter |
| 18 |
\newlength{\fdesc@len} |
| 19 |
\newcommand{\fdesc@label}[1]% |
| 20 |
{% |
| 21 |
\settowidth{\fdesc@len}{{\fdesc@font #1}}% |
| 22 |
\advance\hsize by -2em |
| 23 |
\ifdim\fdesc@len>\hsize% % term > labelwidth |
| 24 |
\parbox[b]{\hsize}% |
| 25 |
{% |
| 26 |
\fdesc@font #1% |
| 27 |
}\\% |
| 28 |
\else% % term < labelwidth |
| 29 |
\ifdim\fdesc@len>\labelwidth% % term > labelwidth |
| 30 |
\parbox[b]{\labelwidth}% |
| 31 |
{% |
| 32 |
\makebox[0pt][l]{{\fdesc@font #1}}\\% |
| 33 |
}% |
| 34 |
\else% % term < labelwidth |
| 35 |
{\fdesc@font #1}% |
| 36 |
\fi\fi% |
| 37 |
\hfil\relax% |
| 38 |
} |
| 39 |
\newenvironment{fdescription}[1][\tt]% |
| 40 |
{% |
| 41 |
\def\fdesc@font{#1} |
| 42 |
\begin{quote}% |
| 43 |
\begin{list}{}% |
| 44 |
{% |
| 45 |
\renewcommand{\makelabel}{\fdesc@label}% |
| 46 |
\setlength{\labelwidth}{120pt}% |
| 47 |
\setlength{\leftmargin}{\labelwidth}% |
| 48 |
\addtolength{\leftmargin}{\labelsep}% |
| 49 |
}% |
| 50 |
}% |
| 51 |
{% |
| 52 |
\end{list}% |
| 53 |
\end{quote}% |
| 54 |
} |
| 55 |
\makeatother |
| 56 |
|
| 57 |
\pLanguage{Java} |
| 58 |
|
| 59 |
\begin{document} |
| 60 |
|
| 61 |
\begin{fdescription} |
| 62 |
\item[\index{Methods!drawImage(Image img, |
| 63 |
int dx1, |
| 64 |
int dy1, |
| 65 |
int dx2, |
| 66 |
int dy2, |
| 67 |
int sx1, |
| 68 |
int sy1, |
| 69 |
int sx2, |
| 70 |
int sy2, |
| 71 |
ImageObserver observer)@% |
| 72 |
\pExp{\pKey{public} \pKey{abstract} \pKey{boolean} drawImage(Image img, |
| 73 |
\pKey{int} dx1, |
| 74 |
\pKey{int} dy1, |
| 75 |
\pKey{int} dx2, |
| 76 |
\pKey{int} dy2, |
| 77 |
\pKey{int} sx1, |
| 78 |
\pKey{int} sy1, |
| 79 |
\pKey{int} sx2, |
| 80 |
\pKey{int} sy2, |
| 81 |
ImageObserver observer)}}% |
| 82 |
\pExp{public abstract boolean drawImage(Image img, int dx1, int |
| 83 |
dy1, int dx1, int dy2, int sx1, int sy1, int sx2, int sy2, |
| 84 |
ImageObserver observer)}]% |
| 85 |
\ldots |
| 86 |
\end{fdescription} |
| 87 |
|
| 88 |
\printindex |
| 89 |
\end{document} |
| 90 |
|
| 91 |
%% |
| 92 |
%% |
| 93 |
%% End of file `struktxp-tst-00.tex'. |