summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/termlist/termlist.sty
blob: 07e06f018a78e509dc92c3a2056ac630cd49296e (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
%%
%% This is file `termlist.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% termlist.dtx  (with options: `package')
%% 
%% Typeset lists of numbered terms.
%% 
%% Copyright 2008, 2010 Bernd Rellermeyer
%% 
%% This file may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3b of this
%% license or (at your option) any later version.  The latest version
%% of this license is in:
%% 
%% http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3b or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{termlist}[2010/06/12 v1.1 Minor layout corrections]
\def\termlabel{(\theequation)}
\def\termlabelfont{\normalfont\normalcolor}
\def\@termlistmklab#1{\termlabelfont #1\hfil}
\newdimen\termindent
\termindent\leftmargini
\newenvironment{termlist}{%
  \list{\termlabel}{%
    \@nmbrlisttrue
    \def\@listctr{equation}%
    \partopsep\z@\@plus\p@\@minus\p@
    \topsep\abovedisplayskip
    \leftmargin\termindent
    \labelwidth\leftmargin
    \advance\labelwidth-\labelsep
    \listparindent\parindent
    \parsep\parskip
    \ifdim\parsep<\jot
      \itemsep\jot
      \advance\itemsep-\parsep
    \else
      \itemsep\z@skip
    \fi
    \let\makelabel\@termlistmklab}}{%
  \endlist}
\newenvironment{term}{%
  \begin{termlist}\item\relax}{%
  \end{termlist}}
\newenvironment{termlist*}{%
  \termlist\@nmbrlistfalse\let\termlabel\relax}{%
  \endlist}
\newenvironment{term*}{%
  \begin{termlist*}\item\relax}{%
  \end{termlist*}}
\endinput
%%
%% End of file `termlist.sty'.