summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-09 22:20:52 +0000
committerKarl Berry <karl@freefriends.org>2010-06-09 22:20:52 +0000
commitade959d5f7adbbef896062a4245725f1369e1b1f (patch)
tree6890ee291e0535e02d4ff77abd23a5cf802e4f76 /Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx
parent4b653b7509fc5880c21ce05b56562dda6e8e12f2 (diff)
thmtools update (9jun10)
git-svn-id: svn://tug.org/texlive/trunk@18850 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx15
1 files changed, 13 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx b/Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx
index 0d8a23dc010..ea775854de8 100644
--- a/Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx
+++ b/Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx
@@ -97,11 +97,22 @@
\AtBeginDocument{%
\@ifpackageloaded{nameref}{%
\addtotheorempostheadhook{%
- \expandafter\NR@gettitle\expandafter{\thmt@optarg}%
+ \expandafter\NR@gettitle\expandafter{\thmt@shortoptarg}%
}}{}
}
-
+\AtBeginDocument{%
+ \@ifpackageloaded{cleveref}{%
+ \@ifpackagelater{cleveref}{2010/04/30}{%
+ % OK, new enough
+ }{%
+ \PackageWarningNoLine{thmtools}{%
+ Your version of cleveref is too old!\MessageBreak
+ Update to version 0.16.1 or later%
+ }
+ }
+ }{}
+}
% \end{macrocode}
%\iffalse
%</autoref>