summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/acronym/acronym.sty18
1 files changed, 15 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/acronym/acronym.sty b/Master/texmf-dist/tex/latex/acronym/acronym.sty
index bbede03632e..74d30c76359 100644
--- a/Master/texmf-dist/tex/latex/acronym/acronym.sty
+++ b/Master/texmf-dist/tex/latex/acronym/acronym.sty
@@ -40,8 +40,8 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesPackage{acronym}[2006/06/26
- v1.26
+\ProvidesPackage{acronym}[2008/04/18
+ v1.27
Support for acronyms (Tobias Oetiker)]
\RequirePackage{suffix}
\newif\ifAC@footnote
@@ -53,6 +53,9 @@
\newif\ifAC@printonlyused
\AC@printonlyusedfalse
\DeclareOption{printonlyused}{\AC@printonlyusedtrue}
+\newif\ifAC@withpage
+\AC@withpagefalse
+\DeclareOption{withpage}{\AC@withpagetrue}
\newif\ifAC@smaller
\AC@smallerfalse
\DeclareOption{smaller}{\AC@smallertrue}
@@ -210,6 +213,13 @@
\ifAC@printonlyused%
\expandafter\ifx\csname acused@#1\endcsname\AC@used%
\item[\protect\AC@hypertarget{#1}{\acsfont{#2}}] #3%
+ \ifAC@withpage%
+ \expandafter\ifx\csname r@acro:#1\endcsname\relax%
+ \G@refundefinedtrue%
+ \else%
+ \dotfill\pageref{acro:#1}%
+ \fi%
+ \fi%
\fi%
\else%
\item[\protect\AC@hypertarget{#1}{\acsfont{#2}}] #3%
@@ -269,6 +279,7 @@
\relax%
\else
\global\expandafter\let\csname ac@#1\endcsname\AC@used
+ \label{acro:#1}%
\AC@addtoclearlist{#1}%
\fi
\ifAC@starred\else\AC@logged{#1}\fi}
@@ -315,7 +326,8 @@
\relax%
\else
\global\expandafter\let\csname ac@#1\endcsname\AC@used
- \AC@addtoclearlist{#1}%
+ \label{acro:#1}%
+ \AC@addtoclearlist{#1}%
\fi
\ifAC@starred\else\AC@logged{#1}\fi}
\newcommand*{\acp}{\AC@starredfalse\protect\@acp}%