summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/nameauth/nameauth.dtx26
1 files changed, 13 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/nameauth/nameauth.dtx b/Master/texmf-dist/source/latex/nameauth/nameauth.dtx
index 7fb789ddda2..e5b7c97ac09 100644
--- a/Master/texmf-dist/source/latex/nameauth/nameauth.dtx
+++ b/Master/texmf-dist/source/latex/nameauth/nameauth.dtx
@@ -180,7 +180,7 @@ Running "make install" installs the files in the local TeX tree.
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{nameauth}
%<*package>
- [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]
%</package>
%<*driver>
\documentclass[11pt]{ltxdoc}
@@ -407,7 +407,7 @@ Running "make install" installs the files in the local TeX tree.
%</driver>
% \fi
%
-% \CheckSum{3101}
+% \CheckSum{3085}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -3654,21 +3654,20 @@ Running "make install" installs the files in the local TeX tree.
% \noindent{\large\bfseries Error Detection}
% \begin{macro}{\@nameauth@Error}
% \changes{v3.0}{2016/10/26}{Added}
+% \changes{v3.01}{2016/10/27}{Fixed}
% One can cause \textsf{nameauth} to halt with an error by leaving a required name argument empty, providing an argument that expands to empty, or creating a name root that is empty within a root/suffix pair.
% \begin{macrocode}
\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
}
% \end{macrocode}
@@ -3738,6 +3737,7 @@ Running "make install" installs the files in the local TeX tree.
}
% \end{macrocode}
% \end{macro}
+% \clearpage
%
% \begin{macro}{\@nameauth@Parse}
% \changes{v3.0}{2016/10/26}{Added}