diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-08 21:54:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-08 21:54:09 +0000 |
commit | 18db07516cb661b09e6076a35df5b0e5ae6c4044 (patch) | |
tree | 676e4109aa2154a0f56b269c3031be2ad2b17d4a /Master | |
parent | e6e77b1b1f00de6879c247e4ce81044214b79378 (diff) |
chemmacros (8mar20)
git-svn-id: svn://tug.org/texlive/trunk@54183 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
9 files changed, 45 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/chemmacros/README b/Master/texmf-dist/doc/latex/chemmacros/README index 6153319d531..a3e932f46cc 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/README +++ b/Master/texmf-dist/doc/latex/chemmacros/README @@ -1,5 +1,5 @@ -------------------------------------------------------------------------- -the CHEMMACROS package v5.10 2020/02/03 +the CHEMMACROS package v5.11 2020/03/07 comprehensive support for typesetting chemistry documents diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.pdf b/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.pdf Binary files differindex 02badca2566..a6f6c8f5a4f 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.pdf +++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.pdf diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex b/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex index 991742a7105..1c8ca7776c0 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex +++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex @@ -1,7 +1,7 @@ % !arara: pdflatex % !arara: biber -% arara: pdflatex: { action: nonstopmode } -% arara: pdflatex: { action: nonstopmode } +% arara: pdflatex: { interaction: nonstopmode } +% arara: pdflatex: { interaction: nonstopmode } % -------------------------------------------------------------------------- % the CHEMMACROS package % @@ -2481,6 +2481,10 @@ The following command is provided to set oxidation numbers: There are a number of options that can be used to modify the typeset result: \begin{options} + \keyval{format}{code}\Module{redox} + \sinceversion{5.11}Allows to apply arbitrary \meta{code} in front of the + typeset oxidation numbers. The last command may expect the oxidation + number as an argument. An example might be \cs*{textcolor}\Marg{red}. \keybool{parse}\Module{redox}\Default{true} When \code{false} an arbitrary entry can be used for \code{<number>}. \keybool{roman}\Module{redox}\Default{false} diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history b/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history index 694c1039cee..2104a10f209 100644 --- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history +++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history @@ -390,3 +390,6 @@ Version history - prefer lazy boolean evaluation - prefer the kernel commands to \chemmacros_leave_vmode: and \chemmacros_tex_if: +2020/03/07 - version 5.11 - let \chemmacros_iupac:nn think we're in the + document – fixes issue #30 (nomenclature) + - add option redox/format diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls b/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls index 179e588d55b..43ed3897099 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls @@ -378,5 +378,6 @@ \chemmacros@add@version{2019-11-17}{5.9} \chemmacros@add@version{2020-01-16}{5.9a} \chemmacros@add@version{2020-02-03}{5.10} +\chemmacros@add@version{2020-03-07}{5.11} \endinput diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex index 7bc4be0b0ac..c2fb135a7b6 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex @@ -238,3 +238,6 @@ if the users haven't decided for themselves and issue a warning 2016/05/03 - correct wrong method check 2020/02/02 - lazy boolean evaluation +2020/02/29 - use \ch even for simple formulas – resolves issue #28 +2020/03/02 - undo last change: this makes problems with oxidation numbers in a + reaction diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex index 3e5b6b616d2..0b9bbf64b84 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex @@ -711,6 +711,8 @@ { \group_begin: \bool_set_true:N \l__chemmacros_inside_iupac_bool + \chemmacros_if_compatibility:nnT {>} {5.10} + { \bool_set_true:N \l__chemmacros_in_document_bool } \chemmacros_set_keys:nn {nomenclature} {#1} \chemmacros_make_iupac: \chemmacros_make_shorthands: @@ -972,3 +974,5 @@ it does nothing as last token in \iupac 2020/01/02 - \chemmacros_show_iupac:N - \chemmacros_if_iupac:NTF +2020/02/29 - let \chemmacros_iupac:nn think we're in the document – fixes + issue #30 diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex index 2c0421b470f..f3f8b29a2d7 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex @@ -52,9 +52,20 @@ \bool_new:N \l__chemmacros_ox_top_bool \bool_new:N \l__chemmacros_ox_align_center_bool +\ChemCompatibilityFrom{5.11} +\tl_new:N \l__chemmacros_ox_format_tl +\EndChemCompatibility + \int_new:N \l__chemmacros_ox_number_int \fp_new:N \l__chemmacros_ox_number_fp +\cs_new_protected:Npn \__chemmacros_ox_format:n #1 + { + \chemmacros_if_compatibility:nnTF {>=} {5.11} + { { \l__chemmacros_ox_format_tl {#1} } } + { \use:n {#1} } + } + \cs_new_protected:Npn \__chemmacros_ox_process_number:n #1 { \bool_if:NTF \l__chemmacros_ox_parse_bool @@ -180,7 +191,10 @@ \hbox_set:Nn \l__chemmacros_tmpa_box { \chemmacros_text:n - { \relsize {-3} \__chemmacros_ox_process_number:n {#1} } + { + \__chemmacros_ox_format:n + { \relsize {-3} \__chemmacros_ox_process_number:n {#1} } + } } \hbox_set:Nn \l__chemmacros_tmpb_box { \chemmacros_chemformula:n {#2} } \chemmacros_math:n @@ -196,7 +210,10 @@ { \box_use:N \l__chemmacros_tmpb_box \tl_use:N \l__chemmacros_ox_side_connect_tl - ( \__chemmacros_ox_process_number:n {#1} ) + ( + \__chemmacros_ox_format:n + { \__chemmacros_ox_process_number:n {#1} } + ) } } \bool_if:NT \l__chemmacros_ox_top_bool @@ -285,6 +302,11 @@ } \EndChemCompatibility +\ChemCompatibilityFrom{5.11} +\chemmacros_define_keys:nn {redox} + { format .tl_set:N = \l__chemmacros_ox_format_tl } +\EndChemCompatibility + % \ox[<keyval>]{<num>,<atom>} % \ox*[<keyval>]{<num>,<atom>} => always number on the top \cs_new_protected:Npn \chemmacros_ox:nnnn #1#2#3#4 @@ -433,3 +455,4 @@ 2015/09/30 - new option `explicit-zero-sign' 2020/02/02 - lazy boolean evaluation - prefer \legacy_if:nTF over \chemmacros_if_tex:nnTF +2020/03/02 - add option redox/format diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty index ca76b8ab2cb..f994ff62712 100644 --- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty +++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty @@ -31,9 +31,9 @@ % -------------------------------------------------------------------------- % package information: -\tl_const:Nn \c_chemmacros_date_tl {2020/02/03} +\tl_const:Nn \c_chemmacros_date_tl {2020/03/07} \tl_const:Nn \c_chemmacros_version_major_number_tl {5} -\tl_const:Nn \c_chemmacros_version_minor_number_tl {10} +\tl_const:Nn \c_chemmacros_version_minor_number_tl {11} \tl_const:Nn \c_chemmacros_version_subrelease_tl {} \tl_const:Nx \c_chemmacros_version_number_tl { |