From 5af556246a5e3fe0dcd57a41e2c330f509f1e3a9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 8 Sep 2008 16:10:33 +0000 Subject: new latex package termlist (18aug08) git-svn-id: svn://tug.org/texlive/trunk@10491 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/termlist/termlist.sty | 59 +++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/termlist/termlist.sty (limited to 'Master/texmf-dist/tex/latex/termlist') 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'. -- cgit v1.2.3