% \begin{meta-comment} % % $Id: mdwlist.dtx,v 1.1 1996/11/19 20:52:26 mdw Exp $ % % Various list-related things % % (c) 1996 Mark Wooding % %----- Revision history ----------------------------------------------------- % % $Log: mdwlist.dtx,v $ % Revision 1.1 1996/11/19 20:52:26 mdw % Initial revision % % % \end{meta-comment} % % \begin{meta-comment} %% %% mdwlist package -- various list-related things %% Copyright (c) 1996 Mark Wooding %% %% This program is free software; you can redistribute it and/or modify %% it under the terms of the GNU General Public License as published by %% the Free Software Foundation; either version 2 of the License, or %% (at your option) any later version. %% %% This program is distributed in the hope that it will be useful, %% but WITHOUT ANY WARRANTY; without even the implied warranty of %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %% GNU General Public License for more details. %% %% You should have received a copy of the GNU General Public License %% along with this program; if not, write to the Free Software %% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. %% % \end{meta-comment} % % \begin{meta-comment} %<+package>\NeedsTeXFormat{LaTeX2e} %<+package>\ProvidesPackage{mdwlist} %<+package> [1996/05/02 1.1 Various list-related things] % \end{meta-comment} % % \CheckSum{179} %% \CharacterTable %% {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 %% 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 %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} %% % % \begin{meta-comment} % %<*driver> \input{mdwtools} \describespackage{mdwlist} \def\defaultdesc{% \desclabelwidth{80pt}% \desclabelstyle\nextlinelabel% \def\makelabel{\bfseries}% } \newenvironment{cmdlist} {\basedescript{\let\makelabel\cmd}} {\endbasedescript} \mdwdoc % % % \end{meta-comment} % % \section{User guide} % % This package provides some vaguely useful list-related commands and % environments: % \begin{itemize*} % \item A way of building \env{description}-like environments. % \item Commands for making `compacted' versions of list environments % \item A method for suspending and resuming enumerated lists. % \end{itemize*} % % \subsection{Description list handling} % % Different sorts of description-type lists require different sorts of % formatting: I think that's fairly obvious. There are essentially three % different attributes which should be changable: % \begin{itemize*} % \item the indentation of the items being described, % \item the handling of labels which don't fit properly, and % \item the style used to typeset the label text. % \end{itemize*} % The first two items should usually be decided for all description-like % lists in the document, to ensure consistency of appearance. The last % depends much more on the content of the labels. % % \DescribeEnv{basedescript} % The \env{basedescript} environment acts as a `skeleton' for description % environments. It takes one argument, which contains declarations to % be performed while constructing the list. I'd consider it unusual for % the \env{basedescript} environment to be used in the main text: it's % intended to be used to build other environments. % % The declarations which can be used to define description-type environments % include all of those which are allowed when setting up a list (see the % \LaTeX\ book for information here). Some others, which apply specifically % to description lists, are also provided: % % \begin{itemize} % % \item \DescribeMacro{\desclabelwidth} % The \syntax{"\\desclabelwidth{""}"} declaration sets labels % to be left-aligned, with a standard width of \; the item % text is indented by \ plus the value of |\labelsep|. % % \item \DescribeMacro{\desclabelstyle} % The label style determines how overlong labels are typeset. A style % may be set using the \syntax{"\\desclabelstyle{"