diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/acronym/acronym.pdf | bin | 151966 -> 152531 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/acronym/acronym.dtx | 64 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/acronym/acronym.sty | 61 |
3 files changed, 76 insertions, 49 deletions
diff --git a/Master/texmf-dist/doc/latex/acronym/acronym.pdf b/Master/texmf-dist/doc/latex/acronym/acronym.pdf Binary files differindex 51f9389e056..f318adb29e4 100644 --- a/Master/texmf-dist/doc/latex/acronym/acronym.pdf +++ b/Master/texmf-dist/doc/latex/acronym/acronym.pdf diff --git a/Master/texmf-dist/source/latex/acronym/acronym.dtx b/Master/texmf-dist/source/latex/acronym/acronym.dtx index 708d6f1b9ba..ad318050b7b 100644 --- a/Master/texmf-dist/source/latex/acronym/acronym.dtx +++ b/Master/texmf-dist/source/latex/acronym/acronym.dtx @@ -35,7 +35,7 @@ %</driver> % \fi % -% \CheckSum{833} +% \CheckSum{859} % %% \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 @@ -83,6 +83,7 @@ % \DoNotIndex{\usepackage} % % +% \changes{v1.32}{2008/05/28}{Ulrich Diez again altered code to redefine labels in order to cope with unreproducable bug-reports. Warnings turnrd into infos for the sake of decreasing frightening-level} % \changes{v1.31}{2008/05/21}{Philipp Lehman noted a nameconflict with jurabib. Renamed clearlist to AC@clearlist since it is internal anyway} % \changes{v1.30}{2008/04/22}{Ulrich Diez corrected code to redefine labels and adjusted behavior with \cmd{\AC@used}} % \changes{v1.29}{2008/04/22}{added code to redefine labels as acronyms are used multiple times, makeing the right page numbers show up for the withpage option (code by Ulrich Diez on comp.text.tex, integration by Domagoj Babic, babic AT cs.ubc.ca)} @@ -483,8 +484,8 @@ between the constant of Boltzmann and the \acl{NA}: % First we test that we got the right format and name the package. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{acronym}[2008/05/21 - v1.31 +\ProvidesPackage{acronym}[2008/05/28 + v1.32 Support for acronyms (Tobias Oetiker)] \RequirePackage{suffix} % \end{macrocode} @@ -725,9 +726,6 @@ between the constant of Boltzmann and the \acl{NA}: % \begin{macrocode} \def\AC@reset#1{% \global\expandafter\let\csname ac@#1\endcsname\relax - \@ifundefined{s@acro:#1}{% - \global\@namedef{s@acro:#1}{}% - }{}% } % \end{macrocode} % \end{macro} @@ -945,7 +943,7 @@ between the constant of Boltzmann and the \acl{NA}: \item[\protect\AC@hypertarget{#1}{\acsfont{#2}}] #3% \ifAC@withpage% \expandafter\ifx\csname r@acro:#1\endcsname\relax% - \PackageWarning{acronym}{% + \PackageInfo{acronym}{% Acronym #1 used in text but not spelled out in full in text}% \else% @@ -1072,27 +1070,45 @@ between the constant of Boltzmann and the \acl{NA}: \newcommand*\@verridelabel[1]{% \@bsphack \protected@write\@auxout{}{\string\undonewlabel{#1}}% - \@overriddenmessage s{#1}% \label{#1}% + \@overriddenmessage rs{#1}% \@esphack }% -\newcommand*\undonewlabel{\@und@newl@bel r}% -\newcommand*\@und@newl@bel[2]{% - \@ifundefined{#1@#2}{% - \@latex@error{Label `#2' shall be overridden although it does - not yet^^Jexist}{A label which does not exist cannot be - overridden.}% - }{% - \global\expandafter\let\csname #1@#2\endcsname\relax +\newcommand*\undonewlabel{\@und@newl@bel rs}% +\newcommand*\@und@newl@bel[3]{% + \@ifundefined{#1@#3}% + {% + \global\expandafter\let\csname#2@#3\endcsname\@nnil + }% + {% + \global\expandafter\let\csname#1@#3\endcsname\relax }% }% -\newcommand*\@overriddenmessage[2]{% - \@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{% - \expandafter\g@addto@macro\csname #1@#2\endcsname{i}% +\newcommand*\@overriddenmessage[3]{% + \expandafter\ifx\csname#2@#3\endcsname\@nnil + \expandafter\@firstoftwo + \else + \@ifundefined{#1@#3}% + {% + \@ifundefined{#2@#3}% + {\expandafter\@firstoftwo}% + {\expandafter\@secondoftwo}% + }% + {\expandafter\@secondoftwo}% + \fi + {% + \PackageInfo{acronym}{Label `#3' newly defined as it + shall be overridden^^Jalthough it is yet undefined}% + \global\expandafter\let\csname#2@#3\endcsname\empty + }% + {% + \PackageInfo{acronym}{Label `#3' overridden}% + \@ifundefined{#2@#3}{% + \global\expandafter\let\csname#2@#3\endcsname\empty}{}% + \expandafter\g@addto@macro\csname#2@#3\endcsname{i}% }% - \@latex@warning{Label `#2' overridden}% }% -\newcommand*\my@testdef[3]{% +\newcommand*\ac@testdef[3]{% \@ifundefined{s@#2}\@secondoftwo\@firstofone {% \expandafter\ifx\csname s@#2\endcsname\empty @@ -1115,17 +1131,15 @@ between the constant of Boltzmann and the \acl{NA}: }% \newcommand*\reset@newl@bel{% \ifx\@newl@bel\@testdef - \let\@newl@bel\my@testdef + \let\@newl@bel\ac@testdef \let\undonewlabel\@gobble \fi }% \newcommand*\AC@placelabel[1]{% \expandafter\ifx\csname ac@#1\endcsname\AC@used - {\AC@phantomsection\@verridelabel{acro:#1}}% \else + {\AC@phantomsection\@verridelabel{acro:#1}}% \global\expandafter\let\csname ac@#1\endcsname\AC@used - {\AC@phantomsection - \@ifundefined{s@acro:#1}{\label}{\@verridelabel}{acro:#1}}% \AC@addtoAC@clearlist{#1}% \fi }% diff --git a/Master/texmf-dist/tex/latex/acronym/acronym.sty b/Master/texmf-dist/tex/latex/acronym/acronym.sty index 35060cbec3e..263e071b0fc 100644 --- a/Master/texmf-dist/tex/latex/acronym/acronym.sty +++ b/Master/texmf-dist/tex/latex/acronym/acronym.sty @@ -39,8 +39,8 @@ %% Right brace \} Tilde \~} %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] -\ProvidesPackage{acronym}[2008/05/21 - v1.31 +\ProvidesPackage{acronym}[2008/05/28 + v1.32 Support for acronyms (Tobias Oetiker)] \RequirePackage{suffix} \newif\ifAC@footnote @@ -134,9 +134,6 @@ \newcommand*\acresetall{\the\AC@clearlist\AC@clearlist={}} \def\AC@reset#1{% \global\expandafter\let\csname ac@#1\endcsname\relax - \@ifundefined{s@acro:#1}{% - \global\@namedef{s@acro:#1}{}% - }{}% } \newcommand*\AC@used{@<>@<>@} \newcommand{\AC@populated}{} @@ -227,7 +224,7 @@ \item[\protect\AC@hypertarget{#1}{\acsfont{#2}}] #3% \ifAC@withpage% \expandafter\ifx\csname r@acro:#1\endcsname\relax% - \PackageWarning{acronym}{% + \PackageInfo{acronym}{% Acronym #1 used in text but not spelled out in full in text}% \else% @@ -277,27 +274,45 @@ \newcommand*\@verridelabel[1]{% \@bsphack \protected@write\@auxout{}{\string\undonewlabel{#1}}% - \@overriddenmessage s{#1}% \label{#1}% + \@overriddenmessage rs{#1}% \@esphack }% -\newcommand*\undonewlabel{\@und@newl@bel r}% -\newcommand*\@und@newl@bel[2]{% - \@ifundefined{#1@#2}{% - \@latex@error{Label `#2' shall be overridden although it does - not yet^^Jexist}{A label which does not exist cannot be - overridden.}% - }{% - \global\expandafter\let\csname #1@#2\endcsname\relax +\newcommand*\undonewlabel{\@und@newl@bel rs}% +\newcommand*\@und@newl@bel[3]{% + \@ifundefined{#1@#3}% + {% + \global\expandafter\let\csname#2@#3\endcsname\@nnil + }% + {% + \global\expandafter\let\csname#1@#3\endcsname\relax }% }% -\newcommand*\@overriddenmessage[2]{% - \@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{% - \expandafter\g@addto@macro\csname #1@#2\endcsname{i}% +\newcommand*\@overriddenmessage[3]{% + \expandafter\ifx\csname#2@#3\endcsname\@nnil + \expandafter\@firstoftwo + \else + \@ifundefined{#1@#3}% + {% + \@ifundefined{#2@#3}% + {\expandafter\@firstoftwo}% + {\expandafter\@secondoftwo}% + }% + {\expandafter\@secondoftwo}% + \fi + {% + \PackageInfo{acronym}{Label `#3' newly defined as it + shall be overridden^^Jalthough it is yet undefined}% + \global\expandafter\let\csname#2@#3\endcsname\empty + }% + {% + \PackageInfo{acronym}{Label `#3' overridden}% + \@ifundefined{#2@#3}{% + \global\expandafter\let\csname#2@#3\endcsname\empty}{}% + \expandafter\g@addto@macro\csname#2@#3\endcsname{i}% }% - \@latex@warning{Label `#2' overridden}% }% -\newcommand*\my@testdef[3]{% +\newcommand*\ac@testdef[3]{% \@ifundefined{s@#2}\@secondoftwo\@firstofone {% \expandafter\ifx\csname s@#2\endcsname\empty @@ -320,17 +335,15 @@ }% \newcommand*\reset@newl@bel{% \ifx\@newl@bel\@testdef - \let\@newl@bel\my@testdef + \let\@newl@bel\ac@testdef \let\undonewlabel\@gobble \fi }% \newcommand*\AC@placelabel[1]{% \expandafter\ifx\csname ac@#1\endcsname\AC@used - {\AC@phantomsection\@verridelabel{acro:#1}}% \else + {\AC@phantomsection\@verridelabel{acro:#1}}% \global\expandafter\let\csname ac@#1\endcsname\AC@used - {\AC@phantomsection - \@ifundefined{s@acro:#1}{\label}{\@verridelabel}{acro:#1}}% \AC@addtoAC@clearlist{#1}% \fi }% |