summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/acronym
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-19 17:07:47 +0000
committerKarl Berry <karl@freefriends.org>2008-04-19 17:07:47 +0000
commit3ebb5d696023c7c1dd3c42045057c647fbe5cd2f (patch)
treea7984a535f71bab54ada2efe6b22b1741364f8d8 /Master/texmf-dist/tex/latex/acronym
parent72147e3ae3a6498662f02959e574ae113b1196e6 (diff)
acronym update (18apr08)
git-svn-id: svn://tug.org/texlive/trunk@7519 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/acronym')
-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}%