texlive[41990] Master/texmf-dist: acro (4sep16)

commits+karl at tug.org commits+karl at tug.org
Sun Sep 4 22:47:42 CEST 2016


Revision: 41990
          http://tug.org/svn/texlive?view=revision&revision=41990
Author:   karl
Date:     2016-09-04 22:47:41 +0200 (Sun, 04 Sep 2016)
Log Message:
-----------
acro (4sep16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/acro/README
    trunk/Master/texmf-dist/doc/latex/acro/acro_en.pdf
    trunk/Master/texmf-dist/doc/latex/acro/example_one.tex
    trunk/Master/texmf-dist/doc/latex/acro/example_two.tex
    trunk/Master/texmf-dist/tex/latex/acro/acro.sty

Modified: trunk/Master/texmf-dist/doc/latex/acro/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acro/README	2016-09-04 01:16:25 UTC (rev 41989)
+++ trunk/Master/texmf-dist/doc/latex/acro/README	2016-09-04 20:47:41 UTC (rev 41990)
@@ -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/

Modified: trunk/Master/texmf-dist/doc/latex/acro/acro_en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/acro/example_one.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acro/example_one.tex	2016-09-04 01:16:25 UTC (rev 41989)
+++ trunk/Master/texmf-dist/doc/latex/acro/example_one.tex	2016-09-04 20:47:41 UTC (rev 41990)
@@ -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
     }%
 }

Modified: trunk/Master/texmf-dist/doc/latex/acro/example_two.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/acro/example_two.tex	2016-09-04 01:16:25 UTC (rev 41989)
+++ trunk/Master/texmf-dist/doc/latex/acro/example_two.tex	2016-09-04 20:47:41 UTC (rev 41990)
@@ -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 ,

Modified: trunk/Master/texmf-dist/tex/latex/acro/acro.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/acro/acro.sty	2016-09-04 01:16:25 UTC (rev 41989)
+++ trunk/Master/texmf-dist/tex/latex/acro/acro.sty	2016-09-04 20:47:41 UTC (rev 41990)
@@ -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:



More information about the tex-live-commits mailing list