diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nameauth/nameauth.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/nameauth/nameauth.sty | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/nameauth/nameauth.sty b/Master/texmf-dist/tex/latex/nameauth/nameauth.sty index 1af86456999..3b721a34931 100644 --- a/Master/texmf-dist/tex/latex/nameauth/nameauth.sty +++ b/Master/texmf-dist/tex/latex/nameauth/nameauth.sty @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{nameauth} - [2016/10/26 v3.0 Name authority management for consistency in text and index] + [2016/10/27 v3.01 Name authority management for consistency in text and index] \newif\if@nameauth@InAKA \newif\if@nameauth@InName \newif\if@nameauth@Xref @@ -158,17 +158,15 @@ } \newcommand*\@nameauth@Error[2] {% - \edef\msg{#2}% - \edef\pkg{nameauth}% - \let\ex\expandafter% - \protected@edef\argb{\trim@spaces{#1}}% - \protected@edef\rootb{\@nameauth@Root{#1}}% - \ifx\argb\@empty - \ex\PackageError\ex{\ex\pkg\ex}\ex{\msg SNN field empty}% - \else - \ifx\rootb\@empty - \ex\PackageError\ex{\ex\pkg\ex}\ex{\msg SNN field malformed}% - \fi + \edef\msga{#2 SNN field empty}% + \edef\msgb{#2 SNN field malformed}% + \protected@edef\testname{\trim@spaces{#1}}% + \protected@edef\testroot{\@nameauth@Root{#1}}% + \ifx\testname\@empty + \PackageError{nameauth}{\msga}% + \fi + \ifx\testroot\@empty + \PackageError{nameauth}{\msgb}% \fi } \newcommandx*\@nameauth@Name[3][1=\@empty, 3=\@empty] |