diff options
author | Karl Berry <karl@freefriends.org> | 2019-10-15 22:01:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-10-15 22:01:30 +0000 |
commit | 4fca0de8cc619b33b6a1d40f927d983d76c38180 (patch) | |
tree | 873ffec6a99d250b09f5017304767c54abd587b1 /Master/texmf-dist/tex/latex/lwarp/lwarp-chemformula.sty | |
parent | 4ab7c4b3024e55e4d2e4957de12dafca5f45ad02 (diff) |
lwarp (15oct19)
git-svn-id: svn://tug.org/texlive/trunk@52399 c570f23f-e606-0410-a88d-b1316a301751
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] |