summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/expdlist/expdlist.sty
blob: 82e198ab56e4be107c0b770174a2d03ed39bd627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
%%
%% This is file `expdlist.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% expdlist.dtx  (with options: `style')
%% 
%% This is a generated file.
%% 
%% Copyright 1992 1999 R. Huelse, W. Kaspar
%% 
%% This file is part of the expdlist package.
%% ------------------------------------------
%% 
%% It can redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN
%% archives in directory macros/latex/base/lppl.txt; either
%% version 1 of the License, or (at your option) any later version.
%% 
\def\filename{EXPDLIST}
\def\filedate{22.09.1999}
\def\fileversion{V 2.4}
\def\docdate {22.09.99}
%% \CheckSum{214}
%% \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         \~}
%%

\typeout{Document Substyle `EXPDLIST'.
         Released \filedate \space (\fileversion)}
\typeout{English Documentation \space \docdate}
\def\compact%
   {\setlength{\itemsep}{-\parsep}}
\def\setleftmargin%
   #1%
   {\setlength{\leftmargin}{#1}}
\let\setlabelsize = \setleftmargin
\def\setlabelphantom%
   #1%
   {\def\set@labelphantom%
     {\setbox\@tempboxa=\hbox spread \labelsep {\@labelstyle #1\hfil}%
      \setleftmargin{\wd\@tempboxa}%
     }%
   }
\def\set@labelphantom{}
\def\@labelstyle%
   {\bfseries}
\def\setlabelstyle%
   #1%
   {\def\@labelstyle{#1}}
\def\breaklabel%
   {\def\@breaklabel%
       {\rule{0mm}{0mm}%
        \\%
       }%
   }%
\def\@breaklabel%
   {}
\let\@orgdlist\description
\def\description%
   {\@ifnextchar[%
       {\@expdlist}%
       {\@orgdlist}%
   }
\let\enddescription\endlist
\def\@expdlistlabel#1%
    {\@labelstyle
     #1%
     \hfil%
    }
\def\@expdlist[#1]%
    {\list{}%
      {\def\@breaklabel{}%
       \def\set@labelphantom{}%
       \def\@labelstyle{\bfseries}%
       #1%
       \set@labelphantom%
       \setlength{\labelwidth}{\leftmargin}%
       \addtolength{\labelwidth}{-\labelsep}%
       \let\makelabel\@expdlistlabel%
      }%
    }
\newlength{\listpartsep}
\listpartsep = 1ex
\long\def\listpart%
   #1%
   {\vspace{\listpartsep}%
    \item[]\hspace*{-\leftmargin}%
    \@tempskipa=\linewidth%
    \addtolength{\@tempskipa}{\rightmargin}%
    \addtolength{\@tempskipa}{\leftmargin}%
    \parbox{\@tempskipa}{#1}%
    \vspace{\listpartsep}%
   }
\def\@item[#1]{%
  \if@noparitem
    \@donoparitem
  \else
    \if@inlabel
      \indent \par
    \fi
    \ifhmode
      \unskip\unskip \par
    \fi
    \if@newlist
      \if@nobreak
        \@nbitem
      \else
        \addpenalty\@beginparpenalty
        \addvspace\@topsep
        \addvspace{-\parskip}%
      \fi
    \else
      \addpenalty\@itempenalty
      \addvspace\itemsep
    \fi
    \global\@inlabeltrue
  \fi
  \everypar{%
    \@minipagefalse
    \global\@newlistfalse
    \if@inlabel
      \global\@inlabelfalse
      {\setbox\z@\lastbox
       \ifvoid\z@
         \kern-\itemindent
       \fi}%
      \box\@labels
      \penalty\z@
    \fi
    \if@nobreak
      \@nobreakfalse
      \clubpenalty \@M
    \else
      \clubpenalty \@clubpenalty
      \everypar{}%
    \fi}%
  \if@noitemarg
    \@noitemargfalse
    \if@nmbrlist
      \refstepcounter\@listctr
    \fi
  \fi
  \sbox\@tempboxa{\makelabel{#1}}%
  \global\setbox\@labels\hbox{%
    \unhbox\@labels
    \hskip \itemindent
    \hskip -\labelwidth
    \hskip -\labelsep
    \ifdim \wd\@tempboxa >\labelwidth
      \box\@tempboxa
      \gdef\set@break{\@breaklabel}     % RUM Change 2.3.90
    \else
      \hbox to\labelwidth {\unhbox\@tempboxa}%
      \gdef\set@break{}%                % RUM Change 2.3.90
    \fi
    \hskip \labelsep}%
    \set@break                          % RUM Change 2.3.90
  \ignorespaces}
\endinput
%%
%% End of file `expdlist.sty'.