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/thm-autoref.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/thm-autoref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/thmtools/thm-autoref.sty | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/thmtools/thm-autoref.sty b/Master/texmf-dist/tex/latex/thmtools/thm-autoref.sty new file mode 100644 index 00000000000..51cdd97d018 --- /dev/null +++ b/Master/texmf-dist/tex/latex/thmtools/thm-autoref.sty @@ -0,0 +1,45 @@ +%% +%% This is file `thm-autoref.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% thm-autoref.dtx (with options: `autoref') +%% 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{thm-autoref}[2008/02/17 BETA thm-autoref (ulmi)] + +\RequirePackage{thm-patch, aliasctr} + +\let\@xa=\expandafter +\let\@nx=\noexpand + +\newcommand\thmt@autorefsetup{% + \@xa\def\csname\thmt@envname autorefname\@xa\endcsname\@xa{\thmt@thmname}% + \ifthmt@hassibling + \@counteralias{\thmt@envname}{\thmt@sibling}% + \@xa\def\@xa\thmt@autoreffix\@xa{% + \@xa\let\csname the\thmt@envname\@xa\endcsname + \csname the\thmt@sibling\endcsname + \def\thmt@autoreffix{}% + }% + \protected@edef\thmt@sibling{\thmt@envname}% + \fi +} +\g@addto@macro\thmt@newtheorem@predefinition{\thmt@autorefsetup}% +\g@addto@macro\thmt@newtheorem@postdefinition{\csname thmt@autoreffix\endcsname}% +\endinput +%% +%% End of file `thm-autoref.sty'. |