diff options
author | Karl Berry <karl@freefriends.org> | 2012-10-17 00:55:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-10-17 00:55:01 +0000 |
commit | ee01d8b66a1d32730498aea492299e5caa008e1b (patch) | |
tree | 60e24ff449671e39b6208e5e2ac7212353593d19 | |
parent | 9e2fb4ea81f35d16a3a6616dee82f2fa9b608c1b (diff) |
acro (16oct12)
git-svn-id: svn://tug.org/texlive/trunk@27988 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/acro/README | 4 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/acro/acro_en.pdf | bin | 444627 -> 534088 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/acro/acro_en.tex | 23 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/acro/acro.sty | 36 |
4 files changed, 43 insertions, 20 deletions
diff --git a/Master/texmf-dist/doc/latex/acro/README b/Master/texmf-dist/doc/latex/acro/README index 3c372979f80..b7b055f2500 100644 --- a/Master/texmf-dist/doc/latex/acro/README +++ b/Master/texmf-dist/doc/latex/acro/README @@ -1,9 +1,9 @@ -------------------------------------------------------------------------- -the ACRO package v0.4 +the ACRO package v0.4a Typeset Acronyms -2012/09/29 +2012/10/07 -------------------------------------------------------------------------- Clemens Niederberger Web: https://bitbucket.org/cgnieder/acro/ diff --git a/Master/texmf-dist/doc/latex/acro/acro_en.pdf b/Master/texmf-dist/doc/latex/acro/acro_en.pdf Binary files differindex 14e235035bb..deb39439ed4 100644 --- a/Master/texmf-dist/doc/latex/acro/acro_en.pdf +++ b/Master/texmf-dist/doc/latex/acro/acro_en.pdf diff --git a/Master/texmf-dist/doc/latex/acro/acro_en.tex b/Master/texmf-dist/doc/latex/acro/acro_en.tex index e1b046b055e..37749ff72b9 100644 --- a/Master/texmf-dist/doc/latex/acro/acro_en.tex +++ b/Master/texmf-dist/doc/latex/acro/acro_en.tex @@ -91,42 +91,42 @@ \usepackage[backend=biber,style=alphabetic,maxnames=10]{biblatex} \addbibresource{\jobname.bib} \begin{filecontents}{\jobname.bib} -@software{abbrevs, +@package{abbrevs, title = {abbrevs}, author = {Matt Swift}, date = {2001-09-08}, version = {1.4}, url = {http://www.ctan.org/pkg/abbrevs} } -@software{acromake, +@package{acromake, title = {acromake}, author = {Paul A. Thompson}, date = {1995-07-16}, version = {na}, url = {http://www.ctan.org/pkg/acromake} } -@software{acronym, +@package{acronym, title = {acronym -- An Acronym Environment for \LaTeXe}, author = {Tobias Oetiker}, date = {2010-09-08}, version = {1.36}, url = {http://www.ctan.org/pkg/acronym} } -@software{acroterm, +@package{acroterm, title = {acroterm}, author = {Jakob Voss}, date = {2010-11-19}, version = {0.1}, url = {http://www.ctan.org/pkg/acroterm} } -@software{glossaries, +@package{glossaries, title = {glossaries}, author = {Nicola L.C. Talbot}, date = {2011-04-12}, version = {3.01}, url = {http://www.ctan.org/pkg/glossaries} } -@software{nomencl, +@package{nomencl, title = {nomencl -- A Package to Create a Nomenclature}, author = {Boris Veytsman and Bernd Schandl and Lee Netherton and C.V. Radhakrishnan}, date = {2005-09-22}, @@ -513,7 +513,12 @@ There are a few options which change the general behaviour of \acro. Depending on the citation command in use a space should be inserted before the citation or maybe not (e.g.\ \cmd*{footcite}\ldots). This option allows you to set this. Actually it can be used to place arbitrary code right before the - citation. + citation.\catcode`\_=11 + \Option{uc-cmd}{<cmd>}\Default{\cmd*{acro_first_upper_case:n}} + The command that is used to capitalize the first word in the \cmd{Ac} and the + like commands. You can change it to another one like for example + \cmd*{makefirstuc}\footnote{from the \paket*{mfirstuc} package} or + \cmd*{MakeTextUppercase}\footnote{from the \paket*{textcase} package}.\catcode`\_=8 \end{beschreibung} All options of this and the following sections can be set up either as package @@ -540,6 +545,10 @@ possible output forms of the acronyms. \Option{long-format}{<format>}\Default The same for the long forms. %% + \Option{list-long-format}{<format>}\Default + An extra format for the long entries in the list. If not used this is the same + as \key{long-format}. + %% \Option{extra-format}{<format>}\Default The same for the extra information. %% diff --git a/Master/texmf-dist/tex/latex/acro/acro.sty b/Master/texmf-dist/tex/latex/acro/acro.sty index c02e687939d..7bac91c42d3 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,xparse,l3keys2e,xtemplate} \ProvidesExplPackage {acro} - {2012/09/29} - {0.4} + {2012/10/07} + {0.4a} {Typeset Acronyms} % error messages: @@ -70,6 +70,7 @@ % tokenlist variables: \tl_new:N \l__acro_short_format_tl \tl_new:N \l__acro_long_format_tl +\tl_new:N \l__acro_list_long_format_tl \tl_new:N \l__acro_extra_format_tl \tl_new:N \l__acro_first_instance_tl \tl_set:Nn \l__acro_first_instance_tl { default } @@ -119,6 +120,11 @@ \cs_new:Npn \__acro_citation_cmd:w { \cite } \cs_new:Npn \__acro_no_break: { \tex_penalty:D \c_ten_thousand } +\cs_new:Npn \__acro_first_upper_case:n #1 + { \tl_expandable_uppercase:n { \tl_head:n { #1 } } \tl_tail:n { #1 } } + +\cs_new_eq:NN \acro_first_upper_case:n \__acro_first_upper_case:n + % options: \keys_define:nn { acro } { @@ -126,7 +132,10 @@ strict .bool_set:N = \l__acro_strict_bool , sort .bool_set:N = \l__acro_sort_bool , short-format .tl_set:N = \l__acro_short_format_tl , - long-format .tl_set:N = \l__acro_long_format_tl , + long-format .code:n = + \tl_set:Nn \l__acro_long_format_tl { #1 } + \tl_set:Nn \l__acro_list_long_format_tl { #1 } , + list-long-format .tl_set:N = \l__acro_list_long_format_tl , extra-format .tl_set:N = \l__acro_extra_format_tl , single .bool_set:N = \l__acro_use_single_bool , first-style .tl_set:N = \l__acro_first_instance_tl , @@ -155,7 +164,9 @@ cite-all .default:n = all , cite-cmd .code:n = \cs_set:Npn \__acro_citation_cmd:w { #1 } , - cite-space .tl_set:N = \l__acro_citation_space_tl + cite-space .tl_set:N = \l__acro_citation_space_tl , + uc-cmd .code:n = + \cs_set_eq:NN \__acro_first_upper_case:n #1 } % setup command: @@ -226,10 +237,12 @@ { \mode_if_horizontal:F { \leavevmode } \group_begin: - \tl_use:N #1 - \bool_if:NTF \l__acro_first_upper_bool - { \tl_to_uppercase:n { \tl_head:n { #2 } } \tl_tail:n { #2 } } - { #2 } + \exp_args:Nx #1 + { + \bool_if:NTF \l__acro_first_upper_bool + { \exp_not:N \__acro_first_upper_case:n { \exp_not:n { #2 } } } + { \exp_not:n { #2 } } + } \group_end: } \cs_generate_variant:Nn \__acro_write_long:Nn { NV,No,Nf } @@ -589,7 +602,7 @@ { \item [ \acro_hyper_target:nn { ##1 } { \__acro_write_short:n { ##2 } } ] } \cs_set:Npn \acro_print_list_long:n ##1 { - \__acro_write_long:Nf \l__acro_long_format_tl + \__acro_write_long:Nf \l__acro_list_long_format_tl { \prop_get:Nn \l__acro_long_prop { ##1 } } \__acro_cite_if:Nn \l__acro_citation_all_bool { ##1 } } @@ -633,7 +646,7 @@ { \acro_hyper_target:nn { ##1 } { \__acro_write_short:n { ##2 } } & } \cs_set:Npn \acro_print_list_long:n ##1 { - \__acro_write_long:Nf \l__acro_long_format_tl + \__acro_write_long:Nf \l__acro_list_long_format_tl { \prop_get:Nn \l__acro_long_prop { ##1 } } \__acro_cite_if:Nn \l__acro_citation_all_bool { ##1 } } @@ -675,7 +688,7 @@ { \acro_hyper_target:nn { ##1 } { \__acro_write_short:n { ##2 } } & } \cs_set:Npn \acro_print_list_long:n ##1 { - \__acro_write_long:Nf \l__acro_long_format_tl + \__acro_write_long:Nf \l__acro_list_long_format_tl { \prop_get:Nn \l__acro_long_prop { ##1 } } \__acro_cite_if:Nn \l__acro_citation_all_bool { ##1 } & @@ -1220,6 +1233,7 @@ 2012/07/23 v0.3d - first CTAN version 2012/07/24 v0.3e - adapted to updated l3kernel 2012/09/28 v0.4 - added means to add citations to acronyms +2012/10/07 v0.4a - new options: "uc-cmd", "list-long-format" % -------------------------------------------------------------------------- % TODO: |