Debian Codegraph @

texmf-dist/source/latex/expdlist/expdlist.dtx

raw
1 \def\filename{EXPDLIST}
2 \def\filedate{22.09.1999}
3 \def\fileversion{V 2.4}
4 \def\docdate {22.09.99}
5 % \iffalse
6 % !!! Bei Datumsaenderung: Auch "version", "date", "infdate" weiter
7 % !!! unten aendern.
8 % \fi
9 %% \CheckSum{214}
10 %% \CharacterTable
11 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
12 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
13 %% Digits \0\1\2\3\4\5\6\7\8\9
14 %% Exclamation \! Double quote \" Hash (number) \#
15 %% Dollar \$ Percent \% Ampersand \&
16 %% Acute accent \' Left paren \( Right paren \)
17 %% Asterisk \* Plus \+ Comma \,
18 %% Minus \- Point \. Solidus \/
19 %% Colon \: Semicolon \; Less than \<
20 %% Equals \= Greater than \> Question mark \?
21 %% Commercial at \@ Left bracket \[ Backslash \\
22 %% Right bracket \] Circumflex \^ Underscore \_
23 %% Grave accent \` Left brace \{ Vertical bar \|
24 %% Right brace \} Tilde \~}
25 %%
26 % \iffalse
27 % !!! Bei Anschriftaenderung: Auch die Anschrift vor
28 % !!! "\StopEventually{}" aendern
29 % @stylefile{Ltall
30 % shortpackagename = {expdlist},
31 % longpackagename = {expdlist},
32 % baseformats = {LaTeX2e $\langle$1997/12/01$\rangle$},
33 % version = {2.4},
34 % date = {22.09.1999},
35 % author = {R. Huelse, W. Kaspar,
36 % [email protected],
37 % Westf"alische Wilhelms-Universit"at M"unster,
38 % Zentrum f"ur Informationsverarbeitung,
39 % R"ontgenstra"se 9-13,
40 % 48149 M"unster,
41 % 02\,51/83-3\,16\,73},
42
43 % abstract = {The expanded \texttt{description} environment
44 % will not replace the \LaTeX-\texttt{description}
45 % environment, but on request you will have some
46 % additional features. It supports an easy
47 % possibility of changing the left margin.
48 % Also there is with \verb+\listpart+ a new
49 % command available which is valid in all
50 % \texttt{list} environments. It gives the
51 % possibility to break a list for a comment
52 % without touching any counters.},
53 % support = {yes},
54 % infauthor = {\author},
55 % infdate = {22.09.1999},
56 % comments = {},
57 % requirements = {},
58 % incompatibilities = {}}
59 % \fi
60 %
61 % \title{\bfseries \texttt{EXPDLIST}\thanks{This file has version number
62 % \fileversion, last revised \filedate.
63 % The documentation has been produced with
64 % Frank Mittelbach's \texttt{DOC.STY} (v1.7k).
65 % There is also a german documentation named
66 % \texttt{EXPDLISG.DRV}.}
67 % -- an Expanded \texttt{description} Environment}
68 % \author{Rainer H\"ulse and Wolfgang Kaspar\\[2mm]
69 % University of M\"unster (Germany)\\
70 % Computing Center\\[2mm]
71 % Internet: $\langle$\texttt{[email protected]}$\rangle$}
72 % \date{\docdate}
73 %
74 % \maketitle
75 %
76 % \def\ttbackslash{\texttt{\symbol{92}}} ^^A typewriter \
77 % \def\ttlbrace{\texttt{\symbol{123}}} ^^A typewriter {
78 % \def\ttrbrace{\texttt{\symbol{125}}} ^^A typewriter }
79 %
80 % \begin{abstract}
81 % \noindent
82 % The expanded \texttt{description} environment will not replace the
83 % \LaTeX-\texttt{description} environment, but on request you will have some
84 % additional features. It supports an easy possibility of changing the
85 % left margin. Also there is with \verb+\listpart+
86 % a new command available which is valid in all \texttt{list} environments.
87 % It gives the possibility to break a list for a comment without touching
88 % any counters.
89 %
90 % The required \texttt{STY}-file is \texttt{EXPDLIST} and
91 % will be enclosed in the \LaTeX-file as following:
92 % \begin{quote}
93 % \verb+\usepackage{expdlist}+
94 % \end{quote}
95 % \end{abstract}
96 %
97 % \section{The Expanded \texttt{description} Environment}
98 % The expanded \texttt{description} environment supports an easy
99 % possibility of changing the left margin in a \texttt{desciption list}.
100 % The text of the item begins at the left margin, either behind the label
101 % or in the following line.
102 % Another declaration eliminates the vertical space which is set by the
103 % \LaTeX-\texttt{STY}s.
104 % As well you can affect the appearance of the label.
105 % The syntax of the expanded \texttt{description} environment is:
106 % \begin{quote}
107 % \verb+\begin{description}[+\textit{declarations}\texttt{]}\\
108 % $\vdots$\\
109 % \verb+\end{description}+
110 % \end{quote}
111 % Without the optional \textit{declarations} this environment is equal to
112 % the original \LaTeX-\texttt{description} environment.
113 %
114 % \newpage
115 % \noindent
116 % The following declarations fix the left margin of the item:
117 % \begin{description}[\setlabelstyle{\ttfamily} \setleftmargin{3cm} \breaklabel
118 % \compact]
119 % \item[\ttbackslash setleftmargin\ttlbrace \textnormal{\textit{size}}\ttrbrace]
120 % gives the amount of horizontal
121 % \SpecialUsageIndex{\setleftmargin}
122 % space to be reserved
123 % for the left margin of the item,
124 % and defaults to the value of the original
125 % \LaTeX-\texttt{description} list if not entered.
126 % \item[\ttbackslash setlabelphantom\ttlbrace \textnormal{\textit{text}}\ttrbrace]
127 % calculates the left margin by the width of
128 % \SpecialUsageIndex{\setlabelphantom}
129 % \textit{text} and by the value of \verb+\labelsep+.
130 % The setting of \verb+\setlabelstyle+ is taken
131 % into account.
132 % \listpart{If you set \texttt{\ttbackslash setlabelphantom}
133 % as well as \texttt{\ttbackslash setleftmargin}, the
134 % horizontal space with the width defined by
135 % \texttt{\ttbackslash setlabelphantom} will be
136 % reserved.}
137 % \listpart{There are some other declarations affecting the layout of the
138 % expanded \texttt{description} list:}
139 % \item[\ttbackslash breaklabel]
140 % causes the definition description to start on
141 % \SpecialUsageIndex{\breaklabel}
142 % the line following the label if the width of
143 % the label exceeds the width of the left
144 % margin. The default is to
145 % begin the description
146 % on the same line after the label.
147 % \item[\ttbackslash compact]
148 % indicates that items should not be
149 % \SpecialUsageIndex{\compact}
150 % separated from each other by vertical white
151 % space.
152 % \item[\ttbackslash setlabelstyle\ttlbrace \textnormal{\textit{typestyle}}\ttrbrace]
153 % identifies the style to be
154 % \SpecialUsageIndex{\setlabelstyle}
155 % used for labels, e.\,g. \verb+\bfseries+,
156 % \verb+\itshape+, \verb+\slshape+ or \verb+\sffamily+
157 % as well as \verb+\small+, \verb+\large+, etc.
158 % The default is \verb+\bfseries+ and \verb+\normalsize+.
159 % \end{description}
160 %
161 % \noindent
162 % The following examples demonstrate some features of the expanded
163 % \linebreak \texttt{description} environment.\\[4ex]
164 % The first example shows it without optional parameters being equal
165 % to the original \LaTeX\ environment.
166 % The command used is:\\[-4ex]
167 % \begin{center}
168 % \verb+\begin{description}+
169 % \end{center}
170 % \begin{quote}
171 % \begin{description}
172 % \item[First label] The first label is a normalsized label.
173 % \item[Here is a very long label] This is the text corresponding to the
174 % very long label.
175 % \item[3rd] The 3rd label is a very short one.
176 % \item This item has no label and was produced by
177 % \verb+\item+ \textit{text}.
178 % \end{description}
179 % \end{quote}
180 %
181 % \vspace{4ex}
182 % \noindent
183 % In the second example optional parameters are set with the following
184 % command:\\[-4ex]
185 % \begin{center}
186 % \verb+\begin{description}[\breaklabel\setleftmargin{80pt}+\\
187 % \verb+\setlabelstyle{\itshape}]+
188 % \end{center}
189 % \begin{quote}
190 % \begin{description}[\breaklabel\setleftmargin{80pt}\setlabelstyle{\itshape}]
191 % \item[First label] The first label is a normalsized label.
192 % \item[Here is a very long label] This is the text corresponding to the
193 % very long label.
194 % \item[3rd] The 3rd label is a very short one.
195 % \item This item has no label and was produced
196 % by \verb+\item+ \textit{text}.
197 % \end{description}
198 % \end{quote}
199 %
200 % \vspace{4ex}
201 % \noindent
202 % The last example shows the command with other optional parameters
203 % and their effects:\\[-4ex]
204 % \begin{center}
205 % \verb+\begin{description}[\compact\setlabelphantom{First label}]+
206 % \end{center}
207 % \begin{quote}
208 % \begin{description}[\compact\setlabelphantom{First label}]
209 % \item[First label] The first label is a normalsized label.
210 % \item[Here is a very long label] This is the text corresponding to the
211 % very long label.
212 % \item[3rd] The 3rd label is a very short one.
213 % \item This item has no label and was produced by
214 % \verb+\item+ \textit{text}.
215 % \end{description}
216 % \end{quote}
217 %
218 % \section{The \texttt{\char92 listpart} command}
219 % In the \texttt{EXPDLIST} style there are two new \LaTeX\ commands:
220 % \begin{description}[\setlabelstyle{\ttfamily} \setleftmargin{3cm} \breaklabel
221 % \compact]
222 % \item[\ttbackslash listpart\ttlbrace \textnormal{\textit{text}}\ttrbrace]
223 % identifies a comment or explanation that
224 % \SpecialUsageIndex{\listpart}
225 % applies to a part of a list.
226 % It can be placed anywhere
227 % within any \texttt{list} environment,
228 % immediately preceeding
229 % those items to which it applies.
230 % The width of \textit{text} depends on the width
231 % of the preceeding list. Therefore you are able
232 % to continue with the next item without
233 % closing and re-opening the list. The numbering
234 % of the \texttt{enumerate} environment is preserved.
235 % \item[\ttbackslash listpartsep]
236 % is the vertical space between the item and
237 % \SpecialUsageIndex{\listpartsep}
238 % the comment produced by
239 % \texttt{\ttbackslash listpart}.
240 % It defaults to \texttt{1ex}.
241 % \end{description}
242 % The following example demonstrates that you can use \verb+\listpart+
243 % also in multi-clause \texttt{list} environments:
244 % \begin{quote}
245 % \begin{itemize}
246 % \item You can use \verb+\listpart+ in multi-clause environments.
247 % \listpart{This is a \texttt{listpart} which puts in some text to
248 % interrupt the list.}
249 % \item You can use \verb+\listpart+ in
250 % \begin{enumerate}
251 % \item{\texttt{itemize}-lists}
252 % \item{\texttt{enumerate}-lists}
253 % \listpart{This is a \texttt{listpart} which puts in some text to
254 % interrupt the list.}
255 % \item{\texttt{description}-lists:}
256 % \begin{description}[\setleftmargin{60pt}]
257 % \item[1st Label] Description A
258 % \listpart{This is a \texttt{listpart} which puts in some text to
259 % interrupt the list.}
260 % \item[2nd Label] Description B
261 % \end{description}
262 % \end{enumerate}
263 % \end{itemize}
264 % \end{quote}
265 %
266 %\StopEventually{}
267 %
268 % \newpage
269 % \changes{V 1.0}{02.03.90}{First published Version}
270 % \changes{V 2.0}{17.05.90}{Documentation with the \texttt{DOC.STY}}
271 % \section{The description of the \texttt{EXPDLIST.STY}-file}
272 % \subsection{The beginning}
273 % Here is a description of the macros used in the \texttt{EXPDLIST.STY}.
274 % We started by defining the current version and date of this file and
275 % documentation:
276 %\iffalse
277 %<*style>
278 %\fi
279 % \begin{macrocode}
280 \typeout{Document Substyle `EXPDLIST'.
281 Released \filedate \space (\fileversion)}
282 \typeout{English Documentation \space \docdate}
283 % \end{macrocode}
284 % \subsection{The optional arguments}
285 % \begin{macro}{\compact}
286 % The first implemented macro is \verb+\compact+. Normally two items
287 % are separated by a blank line. This blank line is defined in \LaTeX\
288 % by \verb+\itemsep+ \texttt{+} \verb+\parsep+. To remove this blank line
289 % we defined
290 % \begin{macrocode}
291 \def\compact%
292 {\setlength{\itemsep}{-\parsep}}
293 % \end{macrocode}
294 % \end{macro}
295 % \par
296 % \begin{macro}{\setleftmargin}
297 % \begin{macro}{\setlabelsize}
298 % To define \verb+\setleftmargin+ we assigned the new width
299 % to \verb+\leftmargin+:
300 % \begin{macrocode}
301 \def\setleftmargin%
302 #1%
303 {\setlength{\leftmargin}{#1}}
304 % \end{macrocode}
305 % The \texttt{\ttbackslash setleftmargin} command was named
306 % \texttt{\ttbackslash setlabelsize} in older versions. To be compatible with
307 % these versions the old command is also defined:
308 % \begin{macrocode}
309 \let\setlabelsize = \setleftmargin
310 % \end{macrocode}
311 % \end{macro}
312 % \end{macro}
313 % \changes{V 2.0}{17.05.90}{Change of \texttt{\ttbackslash setleftmargin}}
314 % \par
315 % \begin{macro}{\setlabelphantom}
316 % The \verb+\setlabelphantom+ command reserves the width of the argument
317 % as horizontal space for the label. We have to put a \verb+\hfil+ into
318 % \verb+\@tempboxa+ to avoid an \texttt{underful hbox} message because the
319 % box is wider than the argument by the value of \verb+\labelsep+.
320 % The width is stored in \verb+\setleftmargin+.
321 % \begin{macrocode}
322 \def\setlabelphantom%
323 #1%
324 {\def\set@labelphantom%
325 {\setbox\@tempboxa=\hbox spread \labelsep {\@labelstyle #1\hfil}%
326 \setleftmargin{\wd\@tempboxa}%
327 }%
328 }
329 \def\set@labelphantom{}
330 % \end{macrocode}
331 % \end{macro}
332 % \changes{V 1.2}{09.05.90}{Change of \texttt{\ttbackslash hfil}}
333 % \par
334 % \begin{macro}{\setlabelstyle}
335 % The \verb+\setlabelstyle+ identifies the style to be used for labels.
336 % In \verb+\@labelstyle+ the default \verb+\bfseries+ is stored.
337 % \begin{macrocode}
338 \def\@labelstyle%
339 {\bfseries}
340 \def\setlabelstyle%
341 #1%
342 {\def\@labelstyle{#1}}
343 % \end{macrocode}
344 % \end{macro}
345 % \par
346 % \begin{macro}{\breaklabel}
347 % To let work \verb+\breaklabel+ correctly as described before we need
348 % a rule with no dimension in the \verb+\item+ definition of \LaTeX.
349 % This rule is defined here:
350 % \begin{macrocode}
351 \def\breaklabel%
352 {\def\@breaklabel%
353 {\rule{0mm}{0mm}%
354 \\%
355 }%
356 }%
357 \def\@breaklabel%
358 {}
359 % \end{macrocode}
360 % \changes{V 1.1}{26.03.90}{Change of \texttt{\ttbackslash breaklabel}}
361 % The changed \verb+\item+ definition follows a little later.
362 % \end{macro}
363 % \subsection{The main macro}
364 % \begin{macro}{\description}
365 % \begin{macro}{\enddescription}
366 % Now we can begin with the new \verb+\description+ definition (which is
367 % in \LaTeX\ the same as \verb+\begin{description}+).
368 % First we had to rename \verb+\description+ to
369 % \verb+\@orgdlist+. It will be executed if no optional argument is set:
370 % \par
371 % \begin{macrocode}
372 \let\@orgdlist\description
373 % \end{macrocode}
374 % \changes{V 2.1}{13.08.92}{Change of \texttt{\ttbackslash @orgdlist}}
375 % We must look
376 % if there is an optional argument. If there is an optional
377 % argument the macro \verb+\@expdlist+ (our new macro) will be
378 % executed. Otherwise the original \LaTeX-macro will be executed which
379 % we have renamed to \verb+\@orgdlist+:
380 % \begin{macrocode}
381 \def\description%
382 {\@ifnextchar[%
383 {\@expdlist}%
384 {\@orgdlist}%
385 }
386 \let\enddescription\endlist
387 % \end{macrocode}
388 % \end{macro} ^^A of \enddescription
389 % \end{macro} ^^A of \description
390 % \par
391 % We had to rename \verb+\description+ to
392 % \verb+\@orgdlist+. It will be executed if no optional argument is set:
393 % \par
394 % If you have set any optional argument, the \verb+\@expdlist+
395 % definition will be executed.
396 % \begin{macrocode}
397 \def\@expdlistlabel#1%
398 {\@labelstyle
399 #1%
400 \hfil%
401 }
402 \def\@expdlist[#1]%
403 {\list{}%
404 {\def\@breaklabel{}%
405 \def\set@labelphantom{}%
406 \def\@labelstyle{\bfseries}%
407 #1%
408 \set@labelphantom%
409 \setlength{\labelwidth}{\leftmargin}%
410 \addtolength{\labelwidth}{-\labelsep}%
411 \let\makelabel\@expdlistlabel%
412 }%
413 }
414 % \end{macrocode}
415 % \changes{V 1.1}{26.03.90}{Change of \texttt{\ttbackslash breaklabel}}
416 % \changes{V 1.2}{09.05.90}{Change of \texttt{\ttbackslash hfil}}
417 % \subsection{\texttt{\ttbackslash listpart} and
418 % \texttt{\ttbackslash listpartsep}}
419 % \begin{macro}{\listpartsep}
420 % Another feature of the \texttt{EXPDLIST.STY} is \verb+\listpart+. To
421 % adjust the vertical space between the item and the comment produced
422 % by \verb+\listpart+ we had to define a new measure named
423 % \verb+\listpartsep+.
424 % \begin{macrocode}
425 \newlength{\listpartsep}
426 \listpartsep = 1ex
427 % \end{macrocode}
428 % \end{macro}
429 % \begin{macro}{\listpart}
430 % Now we could define \verb+\listpart+ as a long definition, because
431 % its value can go over more than one paragraph. It is an item without
432 % label. So the text begins at the point where the label would begin.
433 % The width of the text is \verb+\linewidth+ \texttt{+} \verb+\rightmargin+
434 % \texttt{+} \verb+\leftmargin+. This value is registered in
435 % \verb+\@tempskipa+:
436 % \begin{macrocode}
437 \long\def\listpart%
438 #1%
439 {\vspace{\listpartsep}%
440 \item[]\hspace*{-\leftmargin}%
441 \@tempskipa=\linewidth%
442 \addtolength{\@tempskipa}{\rightmargin}%
443 \addtolength{\@tempskipa}{\leftmargin}%
444 \parbox{\@tempskipa}{#1}%
445 \vspace{\listpartsep}%
446 }
447 % \end{macrocode}
448 % \end{macro}
449 % \iffalse This is a METACOMMENT
450 % *****************************************************************
451 % * *
452 % * Original definition of \item. *
453 % * This is an excerpt from LATEX.TEX. *
454 % * The marked lines are changed. *
455 % * *
456 % *****************************************************************
457 % \fi
458 % \subsection{The redefinition of \texttt{\ttbackslash \@item}}
459 % \begin{macro}{\@item}
460 % To let work \verb+\breaklabel+ correctly we had to redefine the
461 % original \LaTeX\ de\-fi\-ni\-tion of \verb+\@item+ in a few lines
462 % (see \texttt{RUM Change} marks). We had to
463 % define \verb+\set@break+ globally, because it is set within a
464 % \verb+\hbox+, but used outside.
465 % Depending on the width of the label text \verb+\set@break+ is set to
466 % \verb+\@breaklabel+ or to nothing.
467 % At the end of the \verb+\@item+ macro \texttt{\ttbackslash set\@break}
468 % is called after the label is set.
469 % \changes{V 1.1}{26.03.90}{Change of \texttt{\ttbackslash breaklabel}}
470 % \begin{macrocode}
471 \def\@item[#1]{%
472 \if@noparitem
473 \@donoparitem
474 \else
475 \if@inlabel
476 \indent \par
477 \fi
478 \ifhmode
479 \unskip\unskip \par
480 \fi
481 \if@newlist
482 \if@nobreak
483 \@nbitem
484 \else
485 \addpenalty\@beginparpenalty
486 \addvspace\@topsep
487 \addvspace{-\parskip}%
488 \fi
489 \else
490 \addpenalty\@itempenalty
491 \addvspace\itemsep
492 \fi
493 \global\@inlabeltrue
494 \fi
495 \everypar{%
496 \@minipagefalse
497 \global\@newlistfalse
498 \if@inlabel
499 \global\@inlabelfalse
500 {\setbox\z@\lastbox
501 \ifvoid\z@
502 \kern-\itemindent
503 \fi}%
504 \box\@labels
505 \penalty\z@
506 \fi
507 \if@nobreak
508 \@nobreakfalse
509 \clubpenalty \@M
510 \else
511 \clubpenalty \@clubpenalty
512 \everypar{}%
513 \fi}%
514 \if@noitemarg
515 \@noitemargfalse
516 \if@nmbrlist
517 \refstepcounter\@listctr
518 \fi
519 \fi
520 \sbox\@tempboxa{\makelabel{#1}}%
521 \global\setbox\@labels\hbox{%
522 \unhbox\@labels
523 \hskip \itemindent
524 \hskip -\labelwidth
525 \hskip -\labelsep
526 \ifdim \wd\@tempboxa >\labelwidth
527 \box\@tempboxa
528 \gdef\set@break{\@breaklabel} % RUM Change 2.3.90
529 \else
530 \hbox to\labelwidth {\unhbox\@tempboxa}%
531 \gdef\set@break{}% % RUM Change 2.3.90
532 \fi
533 \hskip \labelsep}%
534 \set@break % RUM Change 2.3.90
535 \ignorespaces}
536 % \end{macrocode}
537 % \end{macro}
538 % \changes{V 2.1}{13.08.92}{\LaTeX\ Version~2.09 <25 March 1992>}
539 % \changes{V 2.3}{26.05.99}{\LaTeXe\ <1997/12/01>}
540 %
541 % \newpage
542 % \section{History of Changes}
543 % \begin{description}[\compact\setlabelphantom{V 8.8 (88.88.8888)M}]
544 % \item[V 1.0 (02.03.1990)] First published Version (H\"ulse and Kaspar)
545 % \item[V 1.1 (26.03.1990)] We had to change \texttt{\ttbackslash break} to
546 % \texttt{\ttbackslash breaklabel} and
547 % \texttt{\ttbackslash @break} to
548 % \texttt{\ttbackslash @breaklabel}
549 % because \texttt{\ttbackslash break}
550 % is a \TeX-primitive. This could cause
551 % difficulties with linebreaking. (H\"ulse)
552 % \item[V 1.2 (09.05.1990)] To be more flexible with the label, we changed
553 % \texttt{\ttbackslash hfill} to
554 % \texttt{\ttbackslash hfil}
555 % in \texttt{\ttbackslash @expdlistlabel} (H\"ulse)
556 % \item[V 2.0 (31.05.1990)] Documentation with the \texttt{DOC.STY} from Frank
557 % Mittelbach, University of Mainz,
558 % FRG.\newline
559 % \texttt{\ttbackslash setlabelsize}
560 % will be renamed to
561 % \texttt{\ttbackslash setleftmargin}
562 % (H\"ulse)
563 % \item[V 2.1 (13.08.1992)] \texttt{\ttbackslash @orgdlist} is defined by
564 % \texttt{\ttbackslash let}. Definition of
565 % \texttt{\ttbackslash item[]} out of \LaTeX\
566 % Version~2.09 $\langle$25 March 1992$\rangle$
567 % (Perske)
568 % \item[V 2.2 (23.09.1992)] Included Documentation Driver File and German
569 % Documentation File into this \texttt{.doc}-File.
570 % With Version 2.0 of \texttt{docstrip.tex} and the
571 % Batchfile \texttt{install.rum} you can extract
572 % them out of this \texttt{.doc}-File. (Perske)
573 % \item[V 2.3 (26.05.1999)] The Definition of \texttt{\ttbackslash item[]} is
574 % out of LaTeX2e $\langle$1997/12/01$\rangle$.
575 % The distribution is now supplied under the
576 % terms of the LPPL. The files were renamed
577 % to \texttt{expdlist.dtx}, \texttt{expdlist.ins}
578 % and \texttt{readme.txt}
579 % (Kaspar)
580 % \item[V 2.4 (22.09.1999)] Bugfix: percent added after
581 % \texttt{\ttbackslash gdef\ttbackslash
582 % set@break\ttlbrace\ttrbrace}.
583 % Thanks to Peter Karp, who drew my attention to that bug.
584 % \newline (Kaspar)
585 %
586 % \end{description}
587 %
588 % \PrintIndex
589 % \Finale
590 %\iffalse
591 %</style>
592 %\fi
593 %
594 %\iffalse
595 %<+driver>
596 %<+driver>% This is EXPDLIST.DRV 26.05.1999 Kr
597 %<+driver>%
598 %<+driver>\documentclass[a4paper]{article}
599 %<+driver>\usepackage{expdlist,doc}
600 %<+driver>
601 %<+driver>
602 %<+driver>\setcounter{IndexColumns}{3}
603 %<+driver>
604 %<+driver>\EnableCrossrefs
605 %<+driver>\CodelineIndex
606 %<+driver>
607 %<+driver>\pagestyle{headings}
608 %<+driver>
609 %<+driver>\begin{document}
610 %<+driver> \DocInput{expdlist.dtx}
611 %<+driver>\end{document}
612 %<+driver>
613 %<+driver>\endinput
614 %\fi
615 %\iffalse
616 %<+german>\documentclass[a4paper]{article}
617 %<+german>\usepackage{german,expdlist,doc}
618 %<+german>\def\ttbackslash{\texttt{\symbol{92}}} % typewriter \
619 %<+german>\def\ttlbrace{\texttt{\symbol{123}}} % typewriter {
620 %<+german>\def\ttrbrace{\texttt{\symbol{125}}} % typewriter }
621 %<+german>\def\thefootnote{\fnsymbol{footnote}}
622 %<+german>\begin{document}
623 %<+german>\pagestyle{headings}
624 %<+german>\title{\bfseries \texttt{EXPDLIST}%
625 %<+german> \thanks{Derzeit g"ultige Version \fileversion\ vom
626 %<+german> \filedate.
627 %<+german> Mit Hilfe von Frank Mittelbachs \texttt{DOC.STY}
628 %<+german> (v1.7k) l"a"st sich aus dem \texttt{EXPDLIST.DTX}
629 %<+german> eine englische Dokumentation erstellen. Diese
630 %<+german> enth"alt zus"atzlich noch eine Beschreibung des
631 %<+german> Source-Codes.}
632 %<+german> -- eine Erweiterung der \texttt{description}-Umgebung}
633 %<+german>\author{Rainer H\"ulse und Wolfgang Kaspar\\[2mm]
634 %<+german>Westf"alische Wilhelms-Universit"at M"unster\\
635 %<+german>Zentrum f"ur Informationsverarbeitung\\[2mm]
636 %<+german>Internet: $\langle$\texttt{[email protected]}$\rangle$}
637 %<+german>\date{\docdate}
638 %<+german>\maketitle
639 %<+german>\noindent
640 %<+german>\begin{abstract}
641 %<+german>Die erweiterte \texttt{description}-Umgebung soll die
642 %<+german>\LaTeX-\texttt{description}-Umgebung
643 %<+german>nicht ersetzen, sondern bietet bei Bedarf
644 %<+german>einige zus"atzliche Merkmale. Sie unterst"utzt eine einfache
645 %<+german>M"oglichkeit, den linken Rand der Liste festzusetzen. Daneben steht mit
646 %<+german>\verb+\listpart+ ein neuer, f"ur alle \texttt{list}-Umgebungen g"ultiger
647 %<+german>Befehl zur Verf"ugung. Dieses Kommando erm"oglicht es, eine Liste f"ur
648 %<+german>einen Kommentar zu unterbrechen, ohne irgendeinen Z"ahler dabei zu
649 %<+german>ver"andern.
650 %<+german>
651 %<+german>Der ben"otigte \texttt{STY}-File hei"st \texttt{EXPDLIST} und wird so in den
652 %<+german>\LaTeX-File eingebunden:
653 %<+german>\begin{quote}
654 %<+german>\verb+\usepackage{expdlist}+
655 %<+german>\end{quote}
656 %<+german>\end{abstract}
657 %<+german>\section{Die erweiterte \texttt{description}-Umgebung}
658 %<+german>Die erweiterte \texttt{description}-Umgebung unterst"utzt eine einfache
659 %<+german>M"oglichkeit, den linken Rand einer \texttt{description}-Liste zu
660 %<+german>ver"andern. Der Text des Erl"auter"-ungstextes beginnt am linken Rand,
661 %<+german>entweder hinter der Marke oder in der n"achsten Zeile. Eine andere
662 %<+german>Deklaration eliminiert den Freiraum zwischen den Listenpunkten, der von
663 %<+german>den \LaTeX-\texttt{STY}s gesetzt wird. Au"serdem kann noch das Aussehen der
664 %<+german>Marke beeinflu"st werden. Die Syntax der erweiterten
665 %<+german>\texttt{description}-Umgebung ist:
666 %<+german>\begin{quote}
667 %<+german>\verb+\begin{description}[+\textit{deklarationen}\texttt{]}\\
668 %<+german>$\vdots$\\
669 %<+german>\verb+\end{description}+
670 %<+german>\end{quote}
671 %<+german>Ohne die optionalen \texttt{[}\textit{deklarationen}\texttt{]}
672 %<+german>verh"alt sich diese
673 %<+german>Umgebung wie die originale \LaTeX\ \texttt{description}-Umgebung.
674 %<+german>
675 %<+german>\newpage
676 %<+german>\noindent
677 %<+german>Die folgenden Deklarationen legen den linken Rand des
678 %<+german>Erl"auterungstextes fest:
679 %<+german>\begin{description}[\setlabelstyle{\ttfamily} \setleftmargin{3cm} \breaklabel
680 %<+german> \compact]
681 %<+german>\item[\ttbackslash setleftmargin\ttlbrace \textnormal{\textit{l"ange}}\ttrbrace]
682 %<+german> gibt die L"ange des horizontalen Freiraums des
683 %<+german> linken Randes an.
684 %<+german> Die Voreinstellung entspricht dem Wert der
685 %<+german> originalen \texttt{description}-Liste in \LaTeX.
686 %<+german>\item[\ttbackslash setlabelphantom\ttlbrace \textnormal{\textit{text}}\ttrbrace]
687 %<+german> berechnet den linken Rand aus der L"ange von
688 %<+german> \textit{text} und aus dem Wert von
689 %<+german> \verb+\labelsep+. Dabei wird die Setzung von
690 %<+german> \verb+\setlabelstyle+ ber"ucksichtigt.
691 %<+german>\listpart{Wenn man sowohl \texttt{\ttbackslash setlabelphantom} als auch
692 %<+german> \texttt{\ttbackslash setleftmargin} setzt, wird ein Freiraum der
693 %<+german> L"ange, die durch \texttt{\ttbackslash setlabelphantom} definiert
694 %<+german> ist, freigehalten.}
695 %<+german>\listpart{Es gibt noch einige andere Deklarationen, die das Layout der
696 %<+german> erweiterten \texttt{description}-Liste beeinflussen:}
697 %<+german>\item[\ttbackslash breaklabel]
698 %<+german> l"a"st die Beschreibung in der n"achsten Zeile
699 %<+german> beginnen, wenn die L"ange der Marke die Breite
700 %<+german> des linken Randes "uberschreitet. In der
701 %<+german> Voreinstellung beginnt der Erl"auterungstext
702 %<+german> in gleichen Zeile, unmittelbar hinter der Marke.
703 %<+german>\item[\ttbackslash compact]
704 %<+german> zeigt an, da"s die Definitionen nicht durch
705 %<+german> Leerzeilen voneinander getrennt werden.
706 %<+german>\item[\ttbackslash setlabelstyle\ttlbrace \textnormal{\textit{schriftstil}}\ttrbrace]
707 %<+german> ist der Stil, der f"ur die Marken benutzt wird,
708 %<+german> z.~B. \verb+\bfseries+, \verb+\itshape+, \verb+\slshape+ oder
709 %<+german> \verb+\sffamily+ sowie \verb+\small+, \verb+\large+
710 %<+german> usw. Voreingestellt ist \verb+\bfseries+ und
711 %<+german> \verb+\normalsize+.
712 %<+german>\end{description}
713 %<+german>
714 %<+german>\noindent
715 %<+german>Die folgenden Beispiele zeigen einige Anwendungen der erweiterten
716 %<+german>\linebreak \texttt{description}-Umgebung.\\[4ex]
717 %<+german>Das erste Beispiel zeigt, da"s sie ohne optionalen Parametern der
718 %<+german>originalen \LaTeX-Umgebung entspricht. Die abgesetzte Markierung
719 %<+german>lautet:\\[-4ex]
720 %<+german>\begin{center}
721 %<+german>\verb+\begin{description}+
722 %<+german>\end{center}
723 %<+german>\begin{quote}
724 %<+german>\begin{description}
725 %<+german>\item[Erste Marke] Die erste Marke ist durchschnittlich lang.
726 %<+german>\item[Hier nun eine besonders lange Marke] Dies ist der Text, der zu der
727 %<+german> besonders langen Marke geh"ort.
728 %<+german>\item[3.] Die 3. Marke ist sehr kurz.
729 %<+german>\item Dieser Eintrag hat keine Marke und wurde erzeugt mit
730 %<+german> \verb+\item+ \textit{text}.
731 %<+german>\end{description}
732 %<+german>\end{quote}
733 %<+german>
734 %<+german>\vspace{4ex}
735 %<+german>\noindent
736 %<+german>Im zweiten Beispiel werden mit der folgenden Markierung optionale
737 %<+german>Parameter gesetzt:\\[-4ex]
738 %<+german>\begin{center}
739 %<+german>\verb+\begin{description}[\breaklabel\setleftmargin{80pt}+\\
740 %<+german>\verb+\setlabelstyle{\itshape}]+
741 %<+german>\end{center}
742 %<+german>\begin{quote}
743 %<+german>\begin{description}[\breaklabel\setleftmargin{80pt}\setlabelstyle{\itshape}]
744 %<+german>\item[Erste Marke] Die erste Marke ist durchschnittlich lang.
745 %<+german>\item[Hier nun eine besonders lange Marke] Dies ist der Text, der zu der
746 %<+german> besonders langen Marke geh"ort.
747 %<+german>\item[3.] Die 3. Marke ist sehr kurz.
748 %<+german>\item Dieser Eintrag hat keine Marke und wurde erzeugt mit
749 %<+german> \verb+\item+ \textit{text}.
750 %<+german>\end{description}
751 %<+german>\end{quote}
752 %<+german>
753 %<+german>\vspace{4ex}
754 %<+german>\noindent
755 %<+german>Das letze Beispiel zeigt die Markierung mit weiteren optionalen
756 %<+german>Parametern und ihre Wirkung:\\[-4ex]
757 %<+german>\begin{center}
758 %<+german>\verb+\begin{description}[\compact\setlabelphantom{Erste Marke}]+
759 %<+german>\end{center}
760 %<+german>\begin{quote}
761 %<+german>\begin{description}[\compact\setlabelphantom{Erste Marke}]
762 %<+german>\item[Erste Marke] Die erste Marke ist durchschnittlich lang.
763 %<+german>\item[Hier nun eine besonders lange Marke] Dies ist der Text, der zu der
764 %<+german> besonders langen Marke geh"ort.
765 %<+german>\item[3.] Die 3. Marke ist sehr kurz.
766 %<+german>\item Dieser Eintrag hat keine Marke und wurde erzeugt mit
767 %<+german> \verb+\item+ \textit{text}.
768 %<+german>\end{description}
769 %<+german>\end{quote}
770 %<+german>
771 %<+german>\section{Das \texttt{\ttbackslash listpart}-Kommando}
772 %<+german>Der \texttt{EXPDLIST}-Style enth"alt noch zwei weitere neue \LaTeX-Kommandos:
773 %<+german>\begin{description}[\setlabelstyle{\ttfamily} \setleftmargin{3cm} \breaklabel
774 %<+german> \compact]
775 %<+german>\item[\ttbackslash listpart\ttlbrace \textnormal{\textit{text}}\ttrbrace]
776 %<+german> ist ein Kommentar oder eine Erkl"arung, die als
777 %<+german> Teil einer Liste gilt. Er kann irgendwo in einer
778 %<+german> beliebigen
779 %<+german> \texttt{list}"=Umgebung stehen, direkt
780 %<+german> hinter dem Listeneintrag, zu dem er geh"ort. Die
781 %<+german> Zeilenbreite von \textit{text} richtet sich
782 %<+german> dabei nach der Breite der "ubergeordneten Liste.
783 %<+german> Man kann somit mit dem n"achsten Listenpunkt
784 %<+german> fortfahren, ohne die Liste beenden und
785 %<+german> an\-schlie"send wieder neu beginnen zu m"ussen.
786 %<+german> Die Numerierung in der \texttt{enumerate}-Umgebung
787 %<+german> bleibt dabei erhalten.
788 %<+german>\item[\ttbackslash listpartsep]
789 %<+german> ist der vertikale Abstand zwischen Listeneintrag
790 %<+german> und dem mit \texttt{\ttbackslash listpart} erzeugten
791 %<+german> Kommentar. Voreingestellt ist \linebreak \texttt{1ex}.
792 %<+german>\end{description}
793 %<+german>Das folgende Beispiel zeigt, da"s man \verb+\listpart+ auch in
794 %<+german>geschachtelten \texttt{list}-Umgebungen benutzen kann:
795 %<+german>\begin{quote}
796 %<+german>\begin{itemize}
797 %<+german>\item Man kann \verb+\listpart+ in einer geschachtelten Liste benutzen.
798 %<+german>\listpart{Dies ist ein \texttt{listpart}. Mit dieser Markierung wird
799 %<+german> Text eingeschoben, der die Liste unterbricht.}
800 %<+german>\item Man kann \verb+\listpart+ benutzen in:
801 %<+german>\begin{enumerate}
802 %<+german>\item{\texttt{itemize}-Listen}
803 %<+german>\item{\texttt{enumerate}-Listen}
804 %<+german>\listpart{Dies ist ein \texttt{listpart}. Mit dieser Markierung wird
805 %<+german> Text eingeschoben, der die Liste unterbricht.}
806 %<+german>\item{\texttt{description}-Listen:}
807 %<+german>\begin{description}[\setleftmargin{60pt}]
808 %<+german>\item[1. Marke] Beschreibung A
809 %<+german>\listpart{Dies ist ein \texttt{listpart}. Mit dieser Markierung wird
810 %<+german> Text eingeschoben, der die Liste unterbricht.}
811 %<+german>\item[2. Marke] Beschreibung B
812 %<+german>\end{description}
813 %<+german>\end{enumerate}
814 %<+german>\end{itemize}
815 %<+german>\end{quote}
816 %<+german>\end{document}
817 %\fi
818 \endinput