diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-06-25 11:34:57 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-06-25 11:34:57 +0000 |
commit | 47f4481a23ad516f02cbd8a8bd2a2c180a1ac883 (patch) | |
tree | c96ec730f8c3173be622dc99c56335a40c18f221 /Master/texmf-dist/source/latex/thmtools/thm-listof.dtx | |
parent | 7f6c139bbdbbbcee9140892f8fad3584d63cf446 (diff) |
thmtools patch update v0.1beta6 2008/06/22
git-svn-id: svn://tug.org/texlive/trunk@9040 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools/thm-listof.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/thmtools/thm-listof.dtx | 63 |
1 files changed, 49 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx b/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx index ef15b1854b0..9c5f33d7f7d 100644 --- a/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx +++ b/Master/texmf-dist/source/latex/thmtools/thm-listof.dtx @@ -21,12 +21,26 @@ \usepackage{amsmath, amsthm} \usepackage{thm-patch} \newtheorem{lemma}{Lemma} -\GetFileInfo{thm-patch.sty} +\GetFileInfo{thm-listof.sty} +\providecommand\pkg{\textsf} \EnableCrossrefs \CodelineIndex \RecordChanges \begin{document} - \DocInput{thm-patch.dtx} + + \newcommand\thmlistof{\textsf{thm-listof}} + \title{The \thmlistof\ package\thanks{% + This file documents version~\fileversion\ of~\filedate, + RCS ${}$Id: thm-listof.dtx,v 1.8 2008/05/10 15:34:06 ulmi Exp ${}$. + }} + \author{Ulrich M. Schwarz\thanks{ulmi@absatzen.de}} + + \maketitle + +\begin{abstract} +\end{abstract} + + \DocInput{thm-listof.dtx} \end{document} %</driver> %<*listof> @@ -57,27 +71,47 @@ % \DoNotIndex{\providecommand,\ProvidesPackage,\relax,\renewcommand,\RequirePackage} % \DoNotIndex{\setcounter,\setkeys,\rlap,\setminus,\widthof,\mathrm} % -% \newcommand\thmrestate{\textsf{thm-patch}} -% \title{The \thmrestate\ package\thanks{% -% This file documents version~\fileversion\ of~\filedate, -% RCS ${}$Id: thm-listof.dtx,v 1.4 2008/02/17 21:08:04 ulmi Exp ulmi ${}$. -% }} -% \author{Ulrich M. Schwarz\thanks{ulmi@absatzen.de}} +%\section{Usage} +% This package provides two main commands: +% \DescribeMacro{\listoftheorems} +% |\listoftheorems| will generate, well, a list of all theorems, lemmas, +% etc. in your document. This list is hyperlinked if you use \pkg{hyperref}, +% and it will list the optional argument to the theorem. +% \DescribeMacro{\listtheoremname} +% The heading name is stored in the macro |\listtheoremname| and is +% ``List of Theorems'' by default. All other formatting aspects are taken +% from |\listoffigures|. (As a matter of fact, |\listoffigures| is called +% internally.) % -% \maketitle +% \DescribeMacro{\ignoretheorems} +% |\ignoretheorems|\marg{remark,example,...} can be used to suppress some +% types of theorem from the LoTh. Be careful not to have spaces in the list, +% those are currently \emph{not} filtered out. % -%\begin{abstract} -%\end{abstract} -%\section{Usage} +% There's currently no interface to change the look of the list. If you're +% daring, the code for the theorem type ``lemma'' is in |\l@lemma| and so on. % +%\StopEventually{} %\section{Implementation} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{thm-listof}[2008/02/17 BETA thm-listof (ulmi)] +\ProvidesPackage{thm-listof}[2008/05/10 v0.1beta3 thm-listof (ulmi)] \let\@xa=\expandafter \let\@nx=\noexpand \RequirePackage{thm-patch} +\def\thmtlo@oldchapter{0}% +\newcommand\thmtlo@chaptervspacehack{} +\@ifundefined{chapter}{}{% + \def\thmtlo@chaptervspacehack{% + \ifnum \arabic{chapter}>\thmtlo@oldchapter\relax + % new chapter, add vspace to loe. + \addtocontents{loe}{\protect\addvspace{10\p@}}% + \edef\thmtlo@oldchapter{\arabic{chapter}}% + \fi + }% +} + \providecommand\listtheoremname{List of Theorems} \newcommand\listoftheorems{% %% much hacking here to pick up the definition from the class @@ -99,7 +133,8 @@ \thmt@mklistcmd } -\addtotheoremposthook{% +\addtotheorempostheadhook{% + \thmtlo@chaptervspacehack \addcontentsline{loe}{\thmt@envname}{% \numberline{\csname the\thmt@envname\endcsname}% \thmt@thmname |