summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty33
1 files changed, 25 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty
index 964176492db..e4ea9d2845d 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemmacros.sty
@@ -41,9 +41,14 @@
\begingroup
\boolfalse{mathjax}
\LWR@subsingledollar*{
- \textbackslash{}p\{\LWR@HTMLsanitize{#1}\}
+ \textbackslash{}%
+ p%
+ \{%
+ \LWR@HTMLsanitizedetokenized{\detokenize{#1}}%
+ \}
}{
- chemmacrosp\protect\LWR@HTMLsanitize{\detokenize\expandafter{#1}}%
+ chemmacrosp%
+ \protect\LWR@HTMLsanitizedetokenized{\detokenize\expandafter{#1}}%
}{
\group_begin:
\mbox
@@ -463,7 +468,10 @@
\IfValueTF{#1}
{
\begin{lateximage}[%
- \textbackslash{}orbital{[}\LWR@HTMLsanitize{#1}{]}\{#2\}%
+ \textbackslash{}%
+ orbital{[}%
+ \LWR@HTMLsanitizedetokenized{\detokenize{#1}}%
+ {]}\{#2\}%
]*[][margin-left: 1em ; margin-right: 1em]
}
{
@@ -530,18 +538,26 @@
\IfBooleanTF {#1}
{
\LWR@subsingledollar*{% yes hash
- \textbackslash{}ox*\{\LWR@HTMLsanitize{#3}\}% alt
+ \textbackslash{}%
+ ox*%
+ \{%
+ \LWR@HTMLsanitizedetokenized{\detokenize{#3}}%
+ \}% alt
}{%
- star \protect\LWR@HTMLsanitize{\detokenize\expandafter{#2}}%
+ star \protect\LWR@HTMLsanitizedetokenized{\detokenize\expandafter{#2}}%
}{%
\LWR@chemmacros@ox* {#2} {#3}% contents
}%
}
{
\LWR@subsingledollar*{% yes hash
- \textbackslash{}ox*\{\LWR@HTMLsanitize{#3}\}% alt
+ \textbackslash{}%
+ ox*%
+ \{%
+ \LWR@HTMLsanitizedetokenized{\detokenize{#3}}%
+ \}% alt
}{%
- \protect\LWR@HTMLsanitize{\detokenize\expandafter{#2}}%
+ \protect\LWR@HTMLsanitizedetokenized{\detokenize\expandafter{#2}}%
}{%
\LWR@chemmacros@ox {#2} {#3}% contents
}%
@@ -785,7 +801,8 @@ name = \chemmacros_translate:n {scheme-name}
\boolfalse{mathjax}
\chemmacros_set_keys:nn {thermodynamics} {#1}
\LWR@subsingledollar*{% yes hashing
- \textbackslash{}state\{\LWR@HTMLsanitize{#2}\}% alt
+ \textbackslash{}state%
+ \{\LWR@HTMLsanitizedetokenized{\detokenize{#2}}\}% alt
}{%
chemmacros_state% add'l hashing
#1% options