texlive[54183] Master/texmf-dist: chemmacros (8mar20)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 8 22:54:09 CET 2020


Revision: 54183
          http://tug.org/svn/texlive?view=revision&revision=54183
Author:   karl
Date:     2020-03-08 22:54:09 +0100 (Sun, 08 Mar 2020)
Log Message:
-----------
chemmacros (8mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/chemmacros/README
    trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.pdf
    trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex
    trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history
    trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls
    trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex
    trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex
    trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex
    trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty

Modified: trunk/Master/texmf-dist/doc/latex/chemmacros/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/chemmacros/README	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/doc/latex/chemmacros/README	2020-03-08 21:54:09 UTC (rev 54183)
@@ -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
 

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

Modified: trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros-manual.tex	2020-03-08 21:54:09 UTC (rev 54183)
@@ -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 @@
 
 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}

Modified: trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history
===================================================================
--- trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/doc/latex/chemmacros/chemmacros.history	2020-03-08 21:54:09 UTC (rev 54183)
@@ -390,3 +390,6 @@
                           - 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

Modified: trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros-manual.cls	2020-03-08 21:54:09 UTC (rev 54183)
@@ -378,5 +378,6 @@
 \chemmacros at add@version{2019-11-17}{5.9}
 \chemmacros at add@version{2020-01-16}{5.9a}
 \chemmacros at add@version{2020-02-03}{5.10}
+\chemmacros at add@version{2020-03-07}{5.11}
 
 \endinput

Modified: trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex	2020-03-08 21:54:09 UTC (rev 54183)
@@ -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

Modified: trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.nomenclature.code.tex	2020-03-08 21:54:09 UTC (rev 54183)
@@ -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

Modified: trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.redox.code.tex	2020-03-08 21:54:09 UTC (rev 54183)
@@ -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

Modified: trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty	2020-03-08 21:50:08 UTC (rev 54182)
+++ trunk/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty	2020-03-08 21:54:09 UTC (rev 54183)
@@ -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
   {



More information about the tex-live-commits mailing list.