diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/thmtools/thm-autoref.dtx | 15 |
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> |