diff options
author | Karl Berry <karl@freefriends.org> | 2008-02-18 00:22:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-02-18 00:22:07 +0000 |
commit | e2041bab726766a5193e515f8a7e1761613d1222 (patch) | |
tree | f757513bdd2ecb46dec6a6160b3bccfd1e75b0d4 /Master/texmf-dist/tex/latex/thmtools/aliasctr.sty | |
parent | 957aeb141e1e62fc19b0aedb3bc36ad058226250 (diff) |
new latex package thmtools (17feb08)
git-svn-id: svn://tug.org/texlive/trunk@6667 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/thmtools/aliasctr.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/thmtools/aliasctr.sty | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/thmtools/aliasctr.sty b/Master/texmf-dist/tex/latex/thmtools/aliasctr.sty new file mode 100644 index 00000000000..e8e4f1aec61 --- /dev/null +++ b/Master/texmf-dist/tex/latex/thmtools/aliasctr.sty @@ -0,0 +1,72 @@ +%% +%% This is file `aliasctr.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% aliasctr.dtx (with options: `code') +%% This is a generated file. +%% +%% This file is part of the `thmtools' package. +%% The `thmtools' package has the LPPL maintenance status: maintained. +%% Current Maintainer is Ulrich M. Schwarz, ulmi@absatzen.de +%% +%% Copyright (C) 2008 by Ulrich M. Schwarz. +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, version 1.3a. +%% This version is obtainable at +%% http://www.latex-project.org/lppl/lppl-1-3a.txt +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{aliasctr}[2006/01/22 v0.1 counter aliasing (ulmi)] +\def\aliasctr@f@llow#1#2\@nil#3{% + \ifx#1\@elt + \noexpand #3% + \else + \expandafter\aliasctr@f@llow#1\@elt\@nil{#1}% + \fi +} +\newcommand\aliasctr@follow[1]{% + \expandafter\aliasctr@f@llow + \csname cl@#1\endcsname\@elt\@nil{\csname cl@#1\endcsname}% +} +\renewcommand*\@addtoreset[2]{\bgroup + \edef\aliasctr@@truelist{\aliasctr@follow{#2}}% + \let\@elt\relax + \expandafter\@cons\aliasctr@@truelist{{#1}}% +\egroup} +\RequirePackage{remreset} +\renewcommand*\@removefromreset[2]{\bgroup + \edef\aliasctr@@truelist{\aliasctr@follow{#2}}% + \expandafter\let\csname c@#1\endcsname\@removefromreset + \def\@elt##1{% + \expandafter\ifx\csname c@##1\endcsname\@removefromreset + \else + \noexpand\@elt{##1}% + \fi}% + \expandafter\xdef\aliasctr@@truelist{% + \aliasctr@@truelist} +\egroup} +\newcommand\@counteralias[2]{{% + \def\@@gletover##1##2{% + \expandafter\global + \expandafter\let\csname ##1\expandafter\endcsname + \csname ##2\endcsname + }% + \@ifundefined{c@#2}{\@nocounterr{#2}}{% + \@ifdefinable{c@#1}{% + \@@gletover{c@#1}{c@#2}% + \@@gletover{the#1}{the#2}% + \@@gletover{theH#1}{theH#2}% + \@@gletover{p@#1}{p@#2}% + \expandafter\global + \expandafter\def\csname cl@#1\expandafter\endcsname + \expandafter{\csname cl@#2\endcsname}% + %\@addtoreset{#1}{@ckpt}% + }% + }% +}} +\endinput +%% +%% End of file `aliasctr.sty'. |