summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/acro/README4
-rw-r--r--Master/texmf-dist/doc/latex/acro/acro_en.pdfbin565158 -> 564783 bytes
-rw-r--r--Master/texmf-dist/doc/latex/acro/example_one.tex4
-rw-r--r--Master/texmf-dist/doc/latex/acro/example_two.tex11
-rw-r--r--Master/texmf-dist/tex/latex/acro/acro.sty58
5 files changed, 50 insertions, 27 deletions
diff --git a/Master/texmf-dist/doc/latex/acro/README b/Master/texmf-dist/doc/latex/acro/README
index 413f49ada42..0d81fd94b18 100644
--- a/Master/texmf-dist/doc/latex/acro/README
+++ b/Master/texmf-dist/doc/latex/acro/README
@@ -1,9 +1,9 @@
--------------------------------------------------------------------------
-the ACRO package v2.6b
+the ACRO package v2.6e
Typeset Acronyms
-2016/08/13
+2016/09/04
--------------------------------------------------------------------------
Clemens Niederberger
Web: http://www.mychemistry.eu/forums/forum/acro/
diff --git a/Master/texmf-dist/doc/latex/acro/acro_en.pdf b/Master/texmf-dist/doc/latex/acro/acro_en.pdf
index c37fa11a8fb..ada60f95b40 100644
--- a/Master/texmf-dist/doc/latex/acro/acro_en.pdf
+++ b/Master/texmf-dist/doc/latex/acro/acro_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/acro/example_one.tex b/Master/texmf-dist/doc/latex/acro/example_one.tex
index 23004ffe274..40b3d5fce41 100644
--- a/Master/texmf-dist/doc/latex/acro/example_one.tex
+++ b/Master/texmf-dist/doc/latex/acro/example_one.tex
@@ -6,7 +6,7 @@
\usepackage[ngerman]{babel}
\usepackage{acro}
\acsetup{
- page-ref = paren , % Seitennummer in Klammern
+ page-style = paren , % Seitennummer in Klammern
extra-style = comma , % extra-Informationen mit Komma anhängen
only-used = false % für das Beispiel auch die nicht verwendeten in die Liste aufnehmen
}
@@ -67,7 +67,7 @@
\setlength\LTright{0pt}%
\acsetup{
extra-style = plain ,
- page-ref = plain ,
+ page-style = plain ,
pages = all
}%
}
diff --git a/Master/texmf-dist/doc/latex/acro/example_two.tex b/Master/texmf-dist/doc/latex/acro/example_two.tex
index bc491b5b995..f99d853a5fb 100644
--- a/Master/texmf-dist/doc/latex/acro/example_two.tex
+++ b/Master/texmf-dist/doc/latex/acro/example_two.tex
@@ -6,14 +6,15 @@
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
-\usepackage{fixltx2e}
\usepackage[colorlinks]{hyperref}
\usepackage{acro}
-\DeclareInstance{acro-extra}{paren}{default}{
- punct = true ,
- punct-symbol =
+
+\acsetup{
+ sort = true ,
+ page-style = comma ,
+ extra-style = paren ,
+ hyperref =true
}
-\acsetup{sort,page-ref=comma,extra-style=paren,hyperref}
\DeclareAcronym{CDMA}{
short = CDMA ,
diff --git a/Master/texmf-dist/tex/latex/acro/acro.sty b/Master/texmf-dist/tex/latex/acro/acro.sty
index 0e4549ea47c..70437125d2a 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/08/13}
- {2.6a}
+ {2016/09/04}
+ {2.6e}
{Typeset Acronyms}
% --------------------------------------------------------------------------
@@ -581,9 +581,6 @@
\cs_new_eq:NN \acro_xspace: \xspace
}
{ \cs_new:Npn \acro_xspace: {} }
- \@ifpackageloaded {biblatex}
- { \acro_reset_all: }
- { }
}
% --------------------------------------------------------------------------
@@ -1628,25 +1625,40 @@
{ \prg_return_false: }
}
-% this macro is used in templates for fetching all items to be printed:
+\tl_new:N \l__acro_list_entries_tl
+
+% this macro is used in templates for fetching all items to be printed; it
+% collects all entries in a tl which then is used where needed
%
-% #1: included classes
-% #2: excluded classes
-\cs_new_protected:Npn \acro_list_items:nn #1#2
+% #1: tl containing the entries
+% #2: included classes
+% #3: excluded classes
+\cs_new_protected:Npn \acro_build_list_entries:Nnn #1#2#3
{
+ \tl_clear:N #1
\acro_for_all_acronyms_do:n
{% ##1: id; ##2: short form
\acro_get:n {##1}
- \acro_if_entry:nnnT {##1} {#1} {#2}
+ \acro_if_entry:nnnT {##1} {#2} {#3}
{
- \acro_print_list_entry:nnnn
- { \acro_list_entry:nn {short} {##1} }
- { \acro_list_entry:nn {long} {##1} }
- { \acro_list_entry:nn {extra} {##1} }
- { \acro_list_entry:nn {page} {##1} }
+ \tl_put_right:Nn #1
+ {
+ \acro_print_list_entry:nnnn
+ { \acro_list_entry:nn {short} {##1} }
+ { \acro_list_entry:nn {long} {##1} }
+ { \acro_list_entry:nn {extra} {##1} }
+ { \acro_list_entry:nn {page} {##1} }
+ }
}
}
}
+
+% this macro is used in templates for fetching all items to be printed:
+\cs_new_protected:Npn \acro_list_items:nn #1#2
+ {
+ \acro_build_list_entries:Nnn \l__acro_list_entries_tl {#1} {#2}
+ \tl_use:N \l__acro_list_entries_tl
+ }
% --------------------------------------------------------------------------
% declare templates for the list:
@@ -1812,12 +1824,13 @@
\cs_set_protected:Npn \acro_print_list_entry:nnnn ##1##2##3##4
{ ##1 & ##2 ##3 ##4 \tabularnewline }
}
+ \acro_build_list_entries:Nnn \l__acro_list_entries_tl {#1} {#2}
\use:x
{
\exp_not:V \l__acro_list_before_tl
\exp_not:N \begin { \exp_not:V \l__acro_list_table_tl }
{ \exp_not:V \l__acro_list_table_spec_tl }
- \exp_not:n { \acro_list_items:nn {#1} {#2} }
+ \exp_not:V \l__acro_list_entries_tl
\exp_not:N \end { \exp_not:V \l__acro_list_table_tl }
\exp_not:V \l__acro_list_after_tl
}
@@ -1855,12 +1868,13 @@
\cs_set_protected:Npn \acro_print_list_entry:nnnn ##1##2##3##4
{ ##1 & ##2 & ##3 & ##4 \tabularnewline }
}
+ \acro_build_list_entries:Nnn \l__acro_list_entries_tl {#1} {#2}
\use:x
{
\exp_not:V \l__acro_list_before_tl
\exp_not:N \begin { \exp_not:V \l__acro_list_table_tl }
{ \exp_not:V \l__acro_list_table_spec_tl }
- \exp_not:n { \acro_list_items:nn {#1} {#2} }
+ \exp_not:V \l__acro_list_entries_tl
\exp_not:N \end { \exp_not:V \l__acro_list_table_tl }
\exp_not:V \l__acro_list_after_tl
}
@@ -3171,6 +3185,10 @@
\cs_new_protected:Npn \acro_reset_all:
{ \acro_for_all_acronyms_do:n { \acro_reset:n {##1} } }
+% make sure that no acronym is used at the beginning of the document, see
+% issue #81 for reasons why this may be necessary:
+\AfterEndPreamble { \acro_reset_all: }
+
\cs_new_protected:Npn \acro_mark_all_as_used:
{ \acro_for_all_acronyms_do:n { \acro_mark_as_used:n {##1} } }
@@ -3297,7 +3315,7 @@
\bool_set_false:N \l__acro_upper_indefinite_bool
% \bool_set_false:N \l__acro_citation_all_bool
% \bool_set_false:N \l__acro_citation_first_bool
- \bool_set_false:N \l__acro_addto_index_bool
+ % \bool_set_false:N \l__acro_addto_index_bool
\acro_for_endings_do:n { \bool_set_false:c {l__acro_##1_bool} }
}
@@ -4473,6 +4491,10 @@
- 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
+2016/08/13 v2.6b - version stepped by accident
+2016/08/16 v2.6c - really fixes issue #81
+2016/08/30 v2.6d - fix issue #82
+2016/09/04 v2.6e - fix issue in http://tex.stackexchange.com/q/270034/
% --------------------------------------------------------------------------
% TODO: