summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/acro
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-08-13 21:27:02 +0000
committerKarl Berry <karl@freefriends.org>2016-08-13 21:27:02 +0000
commit2059594b4b8851627ad56591af59a513f2c59498 (patch)
tree65b350767f58fb5f2681d7e49c9ee5f6d491c787 /Master/texmf-dist/tex/latex/acro
parent9a47106d115b425b8ca87c84948a85b10ca4789c (diff)
acro (13aug16)
git-svn-id: svn://tug.org/texlive/trunk@41847 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/acro')
-rw-r--r--Master/texmf-dist/tex/latex/acro/acro.sty59
1 files changed, 27 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/acro/acro.sty b/Master/texmf-dist/tex/latex/acro/acro.sty
index c2871989966..0e4549ea47c 100644
--- a/Master/texmf-dist/tex/latex/acro/acro.sty
+++ b/Master/texmf-dist/tex/latex/acro/acro.sty
@@ -31,8 +31,8 @@
\RequirePackage{expl3,l3sort,xparse,l3keys2e,xtemplate,etoolbox}
\ProvidesExplPackage
{acro}
- {2016/07/20}
- {2.6}
+ {2016/08/13}
+ {2.6a}
{Typeset Acronyms}
% --------------------------------------------------------------------------
@@ -581,6 +581,9 @@
\cs_new_eq:NN \acro_xspace: \xspace
}
{ \cs_new:Npn \acro_xspace: {} }
+ \@ifpackageloaded {biblatex}
+ { \acro_reset_all: }
+ { }
}
% --------------------------------------------------------------------------
@@ -611,12 +614,25 @@
{ \UseInstance {acro-list} {#1} {#2} {#3} }
\cs_generate_variant:Nn \acro_list_instance:nnn {VVV}
-\cs_new_protected:Npn \acro_first_instance:nnn #1#2#3
+\cs_new_protected:Npn \acro_first_instance:nn #1#2
{
- \acro_if_defined:nT {#2}
- { \UseInstance {acro-first} {#1} {#2} {#3} }
+ \tl_if_blank:VF \l__acro_first_style_tl
+ {
+ \tl_set_eq:NN
+ \l__acro_first_instance_tl
+ \l__acro_first_style_tl
+ }
+ \acro_if_defined:nT {#1}
+ {
+ \use:x {
+ \UseInstance {acro-first}
+ { \exp_not:V \l__acro_first_instance_tl }
+ { \exp_not:n {#1} }
+ { \exp_not:n {#2} }
+ }
+ }
}
-\cs_generate_variant:Nn \acro_first_instance:nnn {Vn,VnV}
+\cs_generate_variant:Nn \acro_first_instance:nn {nV}
% --------------------------------------------------------------------------
% hyperref support
@@ -1939,18 +1955,7 @@
\bool_gset_true:c { g__acro_#1_first_use_bool }
\acro_if_is_single:nTF {#1}
{ \acro_single:n {#1} }
- {
- \tl_if_blank:VF \l__acro_first_style_tl
- {
- \tl_set_eq:NN
- \l__acro_first_instance_tl
- \l__acro_first_style_tl
- }
- \acro_first_instance:VnV
- \l__acro_first_instance_tl
- {#1}
- \l__acro_long_tl
- }
+ { \acro_first_instance:nV {#1} \l__acro_long_tl }
}
}
@@ -1997,10 +2002,7 @@
}
\tl_if_blank:VT \l__acro_single_tl
{ \tl_set_eq:NN \l__acro_single_tl \l__acro_long_tl }
- \acro_first_instance:VnV
- \l__acro_first_instance_tl
- {#1}
- \l__acro_single_tl
+ \acro_first_instance:nV {#1} \l__acro_single_tl
}
}
{ % other (e.g. short)
@@ -2744,14 +2746,7 @@
\acro_is_used:n {#1}
\acro_if_is_single:nT {#1}
{ \cs_set_eq:NN \acro_hyper_link:nn \use_ii:nn }
- \tl_if_blank:VF \l__acro_first_style_tl
- {
- \tl_set_eq:NN
- \l__acro_first_instance_tl
- \l__acro_first_style_tl
- }
- \acro_first_instance:VnV
- \l__acro_first_instance_tl
+ \acro_first_instance:nV
{#1}
\l__acro_long_tl
}
@@ -2766,8 +2761,7 @@
\acro_is_used:n {#1}
\acro_if_is_single:nT {#1}
{ \cs_set_eq:NN \acro_hyper_link:nn \use_ii:nn }
- \acro_first_instance:Vnn
- \l__acro_first_instance_tl
+ \acro_first_instance:nn
{#1}
{#2}
}
@@ -4478,6 +4472,7 @@
- fix issue #74
- fix error: acronyms with same sort entry are not
overwritten any more in the list of acronyms
+2016/08/13 v2.6a - fix issues #80 and #81
% --------------------------------------------------------------------------
% TODO: