From 3ebb5d696023c7c1dd3c42045057c647fbe5cd2f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 19 Apr 2008 17:07:47 +0000
Subject: acronym update (18apr08)

git-svn-id: svn://tug.org/texlive/trunk@7519 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/acronym/acronym.sty | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/acronym/acronym.sty')

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}%
-- 
cgit v1.2.3

