diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty index 45a741ddfde..5ec58b4b30a 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty @@ -16,7 +16,7 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. -\LWR@ProvidesPackagePass{chemformula}[2017/03/23] +\LWR@ProvidesPackagePass{chemformula}[2019/10/13] \ExplSyntaxOn \RenewDocumentCommand \ch { O{}m } @@ -39,6 +39,38 @@ \endgroup% } } +\@ifpackagelater{chemformula}{2019/10/13}{ +\cs_gset_protected:Npn \chemformula_chcpd:nn #1#2 + { + \begingroup% + \boolfalse{mathjax}% + \LWR@subsingledollar*{% lwarp + \textbackslash{}chcpd\{\LWR@HTMLsanitize{#2}\}% + }{% + \protect\LWR@HTMLsanitize{\detokenize\expandafter{#1}}% + }{% original + \group_begin: + \tl_if_blank:nF {#2} + { + \keys_set:nn {chemformula} {#1} + \__chemformula_save_catcodes: + \__chemformula_sanitize:Nn + \l__chemformula_chemformula_tmpa_tl + {#2} + \__chemformula_input_compound_no_check:NV + \l__chemformula_compound_tl + \l__chemformula_chemformula_tmpa_tl + \__chemformula_prepare_output:NV + \l__chemformula_compound_tl + \l__chemformula_catcodes_tl + \chemformula_write:V \l__chemformula_compound_tl + } + \group_end: + } + \endgroup + } +}% later than 2019/10/13 +{% earlier than 2019/10/13 \cs_gset_protected:Npn \chemformula_chcpd:nn #1#2 { \begingroup% @@ -66,6 +98,7 @@ } \endgroup } +}% earlier than 2019/10/13 \RenewDocumentCommand \charrow { mO{}O{} } { \begin{lateximage}[-chemformula- charrow] |