summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/acro/acro2.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/acro/acro2.sty')
-rw-r--r--Master/texmf-dist/tex/latex/acro/acro2.sty60
1 files changed, 39 insertions, 21 deletions
diff --git a/Master/texmf-dist/tex/latex/acro/acro2.sty b/Master/texmf-dist/tex/latex/acro/acro2.sty
index d5c7d0b59f8..599f65211b6 100644
--- a/Master/texmf-dist/tex/latex/acro/acro2.sty
+++ b/Master/texmf-dist/tex/latex/acro/acro2.sty
@@ -5,18 +5,18 @@
%
% --------------------------------------------------------------------------
% Clemens Niederberger
-% Web: https://github.com/cgnieder/acro/
+% Web: https://bitbucket.org/cgnieder/acro/
% E-Mail: contact@mychemistry.eu
% --------------------------------------------------------------------------
% Copyright 2011--2020 Clemens Niederberger
%
% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3c
+% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
-% version 2008/05/04 or later.
+% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
@@ -33,11 +33,29 @@
\RequirePackage{expl3,xparse,xtemplate,l3keys2e}
\RequirePackage{etoolbox} % for the document hooks
+\ExplSyntaxOn
+
+\tl_const:Nn \c_acro_date_tl {2020/03/07}
+\tl_const:Nn \c_acro_version_major_number_tl {2}
+\tl_const:Nn \c_acro_version_minor_number_tl {11}
+\tl_const:Nn \c_acro_version_subrelease_tl {d}
+\tl_const:Nx \c_acro_version_number_tl
+ {
+ \c_acro_version_major_number_tl .
+ \c_acro_version_minor_number_tl
+ }
+\tl_const:Nx \c_acro_version_tl
+ {
+ \c_acro_version_number_tl
+ \c_acro_version_subrelease_tl
+ }
+\tl_const:Nn \c_acro_info_tl {Typeset~ Acronyms}
+
\ProvidesExplPackage
- {acro2}
- {2020/03/07}
- {2.11d}
- {\csname c_acro_info_tl\endcsname}
+ {acro}
+ {\c_acro_date_tl}
+ {\c_acro_version_tl}
+ {\c_acro_info_tl}
% --------------------------------------------------------------------------
% warning and error messages:
@@ -193,6 +211,7 @@
\bool_new:N \l__acro_place_label_bool
\bool_new:N \l__acro_print_only_used_bool
\bool_set_true:N \l__acro_print_only_used_bool
+\bool_new:N \g__acro_rerun_bool
\bool_new:N \g__acro_reset_at_barrier_bool
\bool_new:N \l__acro_silence_bool
\bool_new:N \l__acro_single_use_bool
@@ -2481,7 +2500,7 @@
\cs_new_protected:Npn \acro@pages #1#2
{ \tl_gset:cn {g__acro_#1_recorded_pages_tl} {#2} }
-
+
\cs_new_protected:Npn \acro@rerun@check
{
\bool_if:NT \g__acro_rerun_bool
@@ -3009,7 +3028,7 @@
\bool_if:NT \l__acro_indefinite_bool
{ \prop_item:cn {l__acro_#2_indefinite_prop} {#1} ~ }
\bool_if:NT \l__acro_upper_indefinite_bool
- {
+ { % \bool_set_true:N \l__acro_first_upper_bool
\__acro_first_upper_case:x
{ \prop_item:cn {l__acro_#2_indefinite_prop} {#1} } ~
}
@@ -4078,18 +4097,7 @@
\tl_set:Nn \l__acro_next_pages_tl { \,\GetTranslation {acronym-next-pages}\@ }
% --------------------------------------------------------------------------
-% allow for a configuration file:
-
-\file_if_exist:nT
- { \l_acro_config_file_name_tl . \l_acro_config_file_extension_tl }
- {
- \@onefilewithoptions
- {\l_acro_config_file_name_tl} [] []
- \l_acro_config_file_extension_tl
- }
-
-% --------------------------------------------------------------------------
-% define user functions:
+% definition file:
% document commands:
\NewDocumentCommand \DeclareAcronym {mm}
{ \acro_declare_acronym:nn {#1} {#2} }
@@ -4637,4 +4645,14 @@
}
% --------------------------------------------------------------------------
+% allow for a configuration file:
+
+\file_if_exist:nT
+ { \l_acro_config_file_name_tl . \l_acro_config_file_extension_tl }
+ {
+ \@onefilewithoptions
+ {\l_acro_config_file_name_tl} [] []
+ \l_acro_config_file_extension_tl
+ }
+
\file_input_stop: