summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/chemmacros
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-09 03:01:39 +0000
committerNorbert Preining <norbert@preining.info>2020-03-09 03:01:39 +0000
commit0561778af6f8fde0a3a1c334e2aab9a4f1142d6e (patch)
treec19fe45e4101aed56e7fb3602174c6a5e335d7d1 /macros/latex/contrib/chemmacros
parenta8880a5ee484845d9a526c5ca8d21d31214af22b (diff)
CTAN sync 202003090301
Diffstat (limited to 'macros/latex/contrib/chemmacros')
-rw-r--r--macros/latex/contrib/chemmacros/README2
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros-manual.cls1
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros-manual.pdfbin970626 -> 988716 bytes
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros-manual.tex8
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros.history3
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros.module.chemformula.code.tex3
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros.module.nomenclature.code.tex4
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros.module.redox.code.tex27
-rw-r--r--macros/latex/contrib/chemmacros/chemmacros.sty4
9 files changed, 45 insertions, 7 deletions
diff --git a/macros/latex/contrib/chemmacros/README b/macros/latex/contrib/chemmacros/README
index 6153319d53..a3e932f46c 100644
--- a/macros/latex/contrib/chemmacros/README
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros-manual.cls b/macros/latex/contrib/chemmacros/chemmacros-manual.cls
index 179e588d55..43ed389709 100644
--- a/macros/latex/contrib/chemmacros/chemmacros-manual.cls
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros-manual.pdf b/macros/latex/contrib/chemmacros/chemmacros-manual.pdf
index 02badca256..a6f6c8f5a4 100644
--- a/macros/latex/contrib/chemmacros/chemmacros-manual.pdf
+++ b/macros/latex/contrib/chemmacros/chemmacros-manual.pdf
Binary files differ
diff --git a/macros/latex/contrib/chemmacros/chemmacros-manual.tex b/macros/latex/contrib/chemmacros/chemmacros-manual.tex
index 991742a710..1c8ca7776c 100644
--- a/macros/latex/contrib/chemmacros/chemmacros-manual.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros.history b/macros/latex/contrib/chemmacros/chemmacros.history
index 694c1039ce..2104a10f20 100644
--- a/macros/latex/contrib/chemmacros/chemmacros.history
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros.module.chemformula.code.tex b/macros/latex/contrib/chemmacros/chemmacros.module.chemformula.code.tex
index 7bc4be0b0a..c2fb135a7b 100644
--- a/macros/latex/contrib/chemmacros/chemmacros.module.chemformula.code.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros.module.nomenclature.code.tex b/macros/latex/contrib/chemmacros/chemmacros.module.nomenclature.code.tex
index 3e5b6b616d..0b9bbf64b8 100644
--- a/macros/latex/contrib/chemmacros/chemmacros.module.nomenclature.code.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros.module.redox.code.tex b/macros/latex/contrib/chemmacros/chemmacros.module.redox.code.tex
index 2c0421b470..f3f8b29a2d 100644
--- a/macros/latex/contrib/chemmacros/chemmacros.module.redox.code.tex
+++ b/macros/latex/contrib/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/macros/latex/contrib/chemmacros/chemmacros.sty b/macros/latex/contrib/chemmacros/chemmacros.sty
index ca76b8ab2c..f994ff6271 100644
--- a/macros/latex/contrib/chemmacros/chemmacros.sty
+++ b/macros/latex/contrib/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
{