From 49b5449684c5567f46c84152f7105fe18c543147 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 26 Oct 2017 21:24:23 +0000 Subject: crossreftools (26oct17) git-svn-id: svn://tug.org/texlive/trunk@45608 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/crossreftools/crossreftools.sty | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex/latex/crossreftools') diff --git a/Master/texmf-dist/tex/latex/crossreftools/crossreftools.sty b/Master/texmf-dist/tex/latex/crossreftools/crossreftools.sty index e232337ae51..93bee4fbf2c 100644 --- a/Master/texmf-dist/tex/latex/crossreftools/crossreftools.sty +++ b/Master/texmf-dist/tex/latex/crossreftools/crossreftools.sty @@ -1,4 +1,4 @@ -%% LaTeX package crossreftools - version 0.1 (2017/10/08 -- 22:58:50) +%% LaTeX package crossreftools - version 0.2 (2017/10/25 -- 23:08:36) %% Source file for crossreftools.sty %% %% @@ -19,10 +19,10 @@ %% %% -\def\crossreftoolspackageversion{0.1} +\def\crossreftoolspackageversion{0.2} \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{crossreftools}[2017/10/08 - v\crossreftoolspackageversion] +\ProvidesPackage{crossreftools}[2017/10/25 - v\crossreftoolspackageversion] % Some helper macros @@ -97,11 +97,15 @@ } \newcommand{\crtcrefnamebylabel}[1]{% - \expandafter\csname cref@\@@crtextr@ct@cref{counter}{#1}@name\endcsname% + \@ifundefined{r@#1}{UNDEFINED LABEL}{% + \expandafter\csname cref@\@@crtextr@ct@cref{counter}{#1}@name\endcsname% + }% } \newcommand{\crtCrefnamebylabel}[1]{% - \expandafter\csname Cref@\@@crtextr@ct@cref{counter}{#1}@name\endcsname% + \@ifundefined{r@#1}{UNDEFINED LABEL}{% + \expandafter\csname Cref@\@@crtextr@ct@cref{counter}{#1}@name\endcsname% + }% } \def\@@crt@@cref@@suffix{cref} -- cgit v1.2.3