summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ncctools/desclist.sty
blob: caa2dc44c28620185a6f59643bfc24ed396d0b7b (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
%%
%% This is file `desclist.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% desclist.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% This file is a generated file from the sources of the `ncctools'
%% bundle.
%% 
%% You are not allowed to modify this file.
%% 
%% You are allowed to distribute this file if and only if
%% it is distributed with the corresponding source files in
%% the `ncctools' bundle.
%% 
%% For the copying and distribution conditions of the source files,
%% see the README file distributed with the ncctools bundle.
%%
%% File: desclist.dtx Copyright (C) 2002--2004 by Alexander I. Rozhenko
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{desclist}
         [2004/11/23 v1.1 Desclist Package (NCC)]
\newenvironment*{desclist}[2]{%
  \@ifnextchar[{\NCC@dlist{#1}{#2}}{\NCC@dlist{#1}{#2}[]}%
}{%
  \endlist
}
\def\NCC@dlist#1#2[#3]{%
  \list{}{%
    \def\@tempa{#3}\ifx\@tempa\@empty
      \labelwidth\z@ \itemindent-\leftmargin
    \else
      \settowidth\leftmargin{#1#3{#2}}%
      \advance\leftmargin\labelsep
      \labelwidth=\leftmargin
      \itemindent\z@
    \fi
    \def\makelabel##1{\hspace\labelsep #1##1{#2}\hfil}%
  }%
}
\def\description{\desclist{\normalfont\bfseries}{}}
\let\enddescription=\enddesclist
\endinput
%%
%% End of file `desclist.sty'.