texlive[42373] Master/texmf-dist: nameauth (28oct16)
commits+karl at tug.org
commits+karl at tug.org
Fri Oct 28 22:57:55 CEST 2016
Revision: 42373
http://tug.org/svn/texlive?view=revision&revision=42373
Author: karl
Date: 2016-10-28 22:57:55 +0200 (Fri, 28 Oct 2016)
Log Message:
-----------
nameauth (28oct16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/nameauth/nameauth.pdf
trunk/Master/texmf-dist/source/latex/nameauth/nameauth.dtx
trunk/Master/texmf-dist/tex/latex/nameauth/nameauth.sty
Modified: trunk/Master/texmf-dist/doc/latex/nameauth/nameauth.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/nameauth/nameauth.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/nameauth/nameauth.dtx 2016-10-28 20:57:39 UTC (rev 42372)
+++ trunk/Master/texmf-dist/source/latex/nameauth/nameauth.dtx 2016-10-28 20:57:55 UTC (rev 42373)
@@ -180,7 +180,7 @@
%<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 @@
%</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,22 +3654,21 @@
% \noindent{\large\bfseries Error Detection}
% \begin{macro}{\@nameauth at 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 at Error[2]
{%
- \edef\msg{#2}%
- \edef\pkg{nameauth}%
- \let\ex\expandafter%
- \protected at edef\argb{\trim at spaces{#1}}%
- \protected at edef\rootb{\@nameauth at 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 at edef\testname{\trim at spaces{#1}}%
+ \protected at edef\testroot{\@nameauth at Root{#1}}%
+ \ifx\testname\@empty
+ \PackageError{nameauth}{\msga}%
\fi
+ \ifx\testroot\@empty
+ \PackageError{nameauth}{\msgb}%
+ \fi
}
% \end{macrocode}
% \end{macro}
@@ -3738,6 +3737,7 @@
}
% \end{macrocode}
% \end{macro}
+% \clearpage
%
% \begin{macro}{\@nameauth at Parse}
% \changes{v3.0}{2016/10/26}{Added}
Modified: trunk/Master/texmf-dist/tex/latex/nameauth/nameauth.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nameauth/nameauth.sty 2016-10-28 20:57:39 UTC (rev 42372)
+++ trunk/Master/texmf-dist/tex/latex/nameauth/nameauth.sty 2016-10-28 20:57:55 UTC (rev 42373)
@@ -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 at nameauth@InAKA
\newif\if at nameauth@InName
\newif\if at nameauth@Xref
@@ -158,18 +158,16 @@
}
\newcommand*\@nameauth at Error[2]
{%
- \edef\msg{#2}%
- \edef\pkg{nameauth}%
- \let\ex\expandafter%
- \protected at edef\argb{\trim at spaces{#1}}%
- \protected at edef\rootb{\@nameauth at 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 at edef\testname{\trim at spaces{#1}}%
+ \protected at edef\testroot{\@nameauth at Root{#1}}%
+ \ifx\testname\@empty
+ \PackageError{nameauth}{\msga}%
\fi
+ \ifx\testroot\@empty
+ \PackageError{nameauth}{\msgb}%
+ \fi
}
\newcommandx*\@nameauth at Name[3][1=\@empty, 3=\@empty]
{%
More information about the tex-live-commits
mailing list