diff options
author | Karl Berry <karl@freefriends.org> | 2016-05-04 21:00:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-05-04 21:00:50 +0000 |
commit | 231ee51d8d56184431d4c5d9aed9119099e95fcd (patch) | |
tree | 2287b5ba10f9df5bd841c512a8e5f5be13dd4480 /Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex | |
parent | be3c2a013156281b8ceae7259debb34bfb2f7f56 (diff) |
chemmacros (4may16)
git-svn-id: svn://tug.org/texlive/trunk@40887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/chemmacros/chemmacros.module.chemformula.code.tex | 16 |
1 files changed, 11 insertions, 5 deletions
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 |