summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/chemmacros/README2
-rw-r--r--Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdfbin1010048 -> 1010753 bytes
-rw-r--r--Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex24
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex41
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex16
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.reactions.code.tex34
-rw-r--r--Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty9
7 files changed, 87 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/latex/chemmacros/README b/Master/texmf-dist/doc/latex/chemmacros/README
index 376b76eff0d..04b8b5ea045 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.6 2016/05/02
+the CHEMMACROS package v5.6a 2016/05/04
comprehensive support for typesetting chemistry documents
diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf
index 00457cd1b4b..f3bf45d6fc4 100644
--- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf
+++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex
index 452990b6d43..48a556774db 100644
--- a/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex
+++ b/Master/texmf-dist/doc/latex/chemmacros/chemmacros_en.tex
@@ -2398,15 +2398,27 @@ reactions.
\end{example}
If you want to change the layout of the counter tags, you can use
-
\begin{commands}
- \command*{renewtagform}[\marg{tagname}\oarg{format}\marg{right delimiter}\marg{left
- delimiter}]
+ \command*{renewtagform}[\marg{tagname}\oarg{format}\marg{left
+ delimiter}\marg{right delimiter}]
Provided by the \pkg{mathtools} package.
\end{commands}
+or use the following options:
+\begin{options}
+ \keyval{tag-open}{left delimiter}\Module{reactions}\Default{\{}
+ \sinceversion{5.6}The left delimiter.
+ \keyval{tag-close}{right delimiter}\Module{reactions}\Default{\}}
+ \sinceversion{5.6}The right delimiter.
+ \keyval{before-tag}{format}\Module{reactions}\Default
+ \sinceversion{5.6}Code inserted before the tags.
+\end{options}
\begin{example}
- \renewtagform{reaction}[R \textbf]{[}{]}
+ \chemsetup[reactions]{
+ before-tag = R \textbf ,
+ tag-open = [ ,
+ tag-close = ]
+ }
\begin{reaction}
H2O + CO2 <<=> H2CO3
\end{reaction}
@@ -2423,8 +2435,8 @@ The use of \AmS math's \cs{intertext} is possible:
\end{example}
If\sinceversion{5.6} you are using either \pkg{cleveref} or \pkg{fancyref} the
-\env{scheme} environment (or rather its captions) are supported already. For
-\pkg{fancyref} use the prefix \code{rct}.
+\env{reaction} counter is supported already. For \pkg{fancyref} use the
+prefix \code{rct}.
\subsubsection{Own Reactions}
You can create new types of reactions with the command:
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex
index 158bb962b70..04183909902 100644
--- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex
+++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.base.code.tex
@@ -259,6 +259,8 @@
}
\cs_generate_variant:Nn \chemmacros_cs_if_free_new_protected:Npn {c}
+\RequirePackage{scrlfile}
+
% #1: counter
% #2: singular
% #3: plural
@@ -266,15 +268,12 @@
% #5: Plural
\cs_new_protected:Npn \chemmacros_add_cleveref_support:nnnnn #1#2#3#4#5
{
- \AfterEndPreamble
+ \AfterPackage* {cleveref}
{
- \chemmacros_if_package_loaded:nT {cleveref}
+ \cs_if_exist:cF {cref@#1@name}
{
- \cs_if_exist:cF {cref@#1@name}
- {
- \crefname {#1} {#2} {#3}
- \Crefname {#1} {#4} {#5}
- }
+ \crefname {#1} {#2} {#3}
+ \Crefname {#1} {#4} {#5}
}
}
}
@@ -327,22 +326,19 @@
% #3: begin sentence
\cs_new_protected:Npn \chemmacros_add_fancyref_support:nnn #1#2#3
{
- \AfterEndPreamble
+ \AfterPackage* {fancyref}
{
- \chemmacros_if_package_loaded:nT {fancyref}
- {
- \chemmacros_cs_if_free_new:cpn {fancyref#1labelprefix} {#1}
- \chemmacros_cs_if_free_new:cpn {fref#1name} {#2}
- \chemmacros_cs_if_free_new:cpn {Fref#1name} {#3}
- \exp_args:Nnx \frefformat {vario} { \exp_not:c {fancyref#1labelprefix} }
- { \use:c {fref#1name} \fancyrefdefaultspacing ##1##3 }
- \exp_args:Nnx \Frefformat {vario} { \exp_not:c {fancyref#1labelprefix} }
- { \use:c {Fref#1name} \fancyrefdefaultspacing ##1##3 }
- \exp_args:Nnx \frefformat {plain} { \exp_not:c {fancyref#1labelprefix} }
- { \use:c {fref#1name} \fancyrefdefaultspacing ##1 }
- \exp_args:Nnx \Frefformat {plain} { \exp_not:c {fancyref#1labelprefix} }
- { \use:c {Fref#1name} \fancyrefdefaultspacing ##1 }
- }
+ \chemmacros_cs_if_free_new:cpn {fancyref#1labelprefix} {#1}
+ \chemmacros_cs_if_free_new:cpn {fref#1name} {#2}
+ \chemmacros_cs_if_free_new:cpn {Fref#1name} {#3}
+ \exp_args:Nnx \frefformat {vario} { \exp_not:c {fancyref#1labelprefix} }
+ { \use:c {fref#1name} \fancyrefdefaultspacing ##1##3 }
+ \exp_args:Nnx \Frefformat {vario} { \exp_not:c {fancyref#1labelprefix} }
+ { \use:c {Fref#1name} \fancyrefdefaultspacing ##1##3 }
+ \exp_args:Nnx \frefformat {plain} { \exp_not:c {fancyref#1labelprefix} }
+ { \use:c {fref#1name} \fancyrefdefaultspacing ##1 }
+ \exp_args:Nnx \Frefformat {plain} { \exp_not:c {fancyref#1labelprefix} }
+ { \use:c {Fref#1name} \fancyrefdefaultspacing ##1 }
}
}
\cs_generate_variant:Nn \chemmacros_add_fancyref_support:nnn {nnx}
@@ -476,3 +472,4 @@
2016/03/07 - \chemmacros_define_keys:nn and friends
2016/04/25 - macros for cleveref and fancyref support, \ChemCleverefSupport
\ChemFancyrefSupport
+2016/05/04 - fix \ChemCleverefSupport
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 e15bc518d6a..ae27236733c 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
@@ -205,9 +205,11 @@
{ formula .code:n = \chemmacros_set_formula_method:n {#1} }
\EndChemCompatibility
+\def\bla{bla}
+
\AtEndPreamble
{
- \bool_if:nT
+ \bool_if:nTF
{
!\l__chemmacros_formula_method_set_bool
&&
@@ -217,10 +219,13 @@
}
{ \chemmacros_check_formula_method: }
{
- \chemmacros_if_compatiblity:nnTF {>=} {5.6}
- { \msg_warning:nn {chemmacros} {default-formula-method} }
- { \msg_info:nn {chemmacros} {default-formula-method} }
- \chemmacros_set_formula_method:n {chemformula}
+ \bool_if:NF \l__chemmacros_formula_method_set_bool
+ {
+ \chemmacros_if_compatiblity:nnTF {>=} {5.6}
+ { \msg_info:nn {chemmacros} {default-formula-method} }
+ { \msg_warning:nn {chemmacros} {default-formula-method} }
+ \chemmacros_set_formula_method:n {chemformula}
+ }
}
}
@@ -236,3 +241,4 @@
`chemist' and `chemfig'
- don't automatically load an available method: load `chemformula'
if the users haven't decided for themselves and issue a warning
+2016/05/03 - correct wrong method check
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.reactions.code.tex b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.reactions.code.tex
index ed8f48cfd5c..652a300af86 100644
--- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.reactions.code.tex
+++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.reactions.code.tex
@@ -151,8 +151,19 @@
\cs_if_exist:NT \KOMAClassName
{ \bool_set_true:N \l__chemmacros_reactions_tocbasic_bool }
+\tl_new:N \l__chemmacros_reactions_tag_open_tl
+\tl_new:N \l__chemmacros_reactions_tag_close_tl
+\tl_new:N \l__chemmacros_reactions_before_tag_tl
+
\chemmacros_define_keys:nn {reactions}
- { tocbasic .bool_set:N = \l__chemmacros_reactions_tocbasic_bool }
+ {
+ tocbasic .bool_set:N = \l__chemmacros_reactions_tocbasic_bool ,
+ tag-open .tl_set:N = \l__chemmacros_reactions_tag_open_tl ,
+ tag-open .initial:n = \{ ,
+ tag-close .tl_set:N = \l__chemmacros_reactions_tag_close_tl ,
+ tag-close .initial:n = \} ,
+ before-tag .tl_set:N = \l__chemmacros_reactions_before_tag_tl
+ }
\AtEndPreamble
{
@@ -175,13 +186,33 @@
{ \chemmacros_translate:n {reactions} }
[ \chemmacros_translate:n {Reactions} ]
+\AfterPackage* {cleveref}
+ {
+ \creflabelformat {reaction}
+ {
+ #2
+ \l__chemmacros_reactions_tag_open_tl
+ #1
+ \l__chemmacros_reactions_tag_close_tl
+ #3
+ }
+ }
+
\ChemFancyrefSupport {rct}
{ \chemmacros_translate:n {reaction} }
[ \chemmacros_translate:n {Reaction} ]
\EndChemCompatibility
% create new tagform
+\ChemCompatibilityTo{5.5}
\newtagform {reaction} {\{} {\}}
+\EndChemCompatibility
+\ChemCompatibilityFrom{5.6}
+\newtagform {reaction}
+ [\l__chemmacros_reactions_before_tag_tl]
+ {\l__chemmacros_reactions_tag_open_tl}
+ {\l__chemmacros_reactions_tag_close_tl}
+\EndChemCompatibility
\newcounter {chemmacros_save_reaction}
\newcounter {reaction}
@@ -399,3 +430,4 @@
- add cleveref support
- add fancyref support
- moved translations from lang module to reactions module
+2016/05/04 - options `tag-open', `tag-close' and `before-tag'
diff --git a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty
index e119d05200c..c39f55d0614 100644
--- a/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty
+++ b/Master/texmf-dist/tex/latex/chemmacros/chemmacros.sty
@@ -31,10 +31,10 @@
% --------------------------------------------------------------------------
% package information:
-\tl_const:Nn \c_chemmacros_date_tl {2016/05/02}
+\tl_const:Nn \c_chemmacros_date_tl {2016/05/04}
\tl_const:Nn \c_chemmacros_version_major_number_tl {5}
\tl_const:Nn \c_chemmacros_version_minor_number_tl {6}
-\tl_const:Nn \c_chemmacros_version_subrelease_tl {}
+\tl_const:Nn \c_chemmacros_version_subrelease_tl {a}
\tl_const:Nx \c_chemmacros_version_number_tl
{\c_chemmacros_version_major_number_tl.\c_chemmacros_version_minor_number_tl}
\tl_const:Nx \c_chemmacros_version_tl
@@ -510,11 +510,12 @@ Version history
(base)
- new option `explicit-zero-sign' (redox)
2016/03/08 - version 5.5 - new module `polymers'
-2016/04/25 - version 5.6 - generalization of the formula method concept, new
+2016/05/02 - version 5.6 - generalization of the formula method concept, new
methods `chemist' and `chemfig' (chemformula)
- use `tocbasic' for the list of reactions if
available (reactions)
- fix reaction environments to obey \thereaction
(reactions)
- add cleveref and fancyref support (reactions)
-
+ - add cleveref and fancyref support (scheme)
+2016/05/04 - version 5.6a - fix small but annoying bugs (base and chemformula)