diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/termlist/termlist.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/termlist/termlist.sty | 59 |
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'. |