summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/termlist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-09-08 16:10:33 +0000
committerKarl Berry <karl@freefriends.org>2008-09-08 16:10:33 +0000
commit5af556246a5e3fe0dcd57a41e2c330f509f1e3a9 (patch)
treec57f9aa90dd0dadd7a932679e84adec5f33358a1 /Master/texmf-dist/tex/latex/termlist
parentc77d6ba572e2c9f09b37b64a167e8c13f893c5be (diff)
new latex package termlist (18aug08)
git-svn-id: svn://tug.org/texlive/trunk@10491 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/termlist')
-rw-r--r--Master/texmf-dist/tex/latex/termlist/termlist.sty59
1 files changed, 59 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/termlist/termlist.sty b/Master/texmf-dist/tex/latex/termlist/termlist.sty
new file mode 100644
index 00000000000..f4185cd56b8
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/termlist/termlist.sty
@@ -0,0 +1,59 @@
+%%
+%% This is file `termlist.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% termlist.dtx (with options: `package')
+%%
+%% Label any kind of terms with the equation counter.
+%%
+%% Copyright 2008 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}[2008/08/18 v1.0 First release]
+\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}%
+ \leftmargin\termindent
+ \rightmargin\leftmargini
+ \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'.