summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty30
1 files changed, 28 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty
index d96cfc200c1..0634ee5650c 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-mhchem.sty
@@ -21,7 +21,20 @@
\LetLtxMacro\LWR@mhchem@origce\ce
\newcommand{\LWR@mhchem@HTML@ce}[1]{%
-\begin{lateximage}*[\textbackslash{}ce\{\LWR@HTMLsanitize{#1}\}]%
+\LWR@findcurrenttextcolor% sets \LWR@tempcolor
+\ifbool{LWR@xfakebold}%
+ {\def\LWR@tempone{Y}}%
+ {\def\LWR@tempone{N}}%
+\begin{lateximage}*[\textbackslash{}ce\{\LWR@HTMLsanitize{#1}\}]*%
+ [%
+ FM\LWR@f@family%
+ SR\LWR@f@series%
+ SH\LWR@f@shape%
+ SHC\LWR@f@shapecaps%
+ CL\LWR@tempcolor%
+ FB\LWR@tempone% xfakebold
+ ]%
+\LWR@setcurrentfont%
\LWR@mhchem@origce{#1}%
\end{lateximage}%
\endgroup%
@@ -44,7 +57,20 @@
\newcommand*{\LWR@mhchem@HTML@cesplit}[2]
{%
-\begin{lateximage}*[\textbackslash{}cesplit\{\LWR@HTMLsanitize{#2}\}]%
+\LWR@findcurrenttextcolor% sets \LWR@tempcolor
+\ifbool{LWR@xfakebold}%
+ {\def\LWR@tempone{Y}}%
+ {\def\LWR@tempone{N}}%
+\begin{lateximage}*[\textbackslash{}cesplit\{\LWR@HTMLsanitize{#2}\}]*%
+ [%
+ FM\LWR@f@family%
+ SR\LWR@f@series%
+ SH\LWR@f@shape%
+ SHC\LWR@f@shapecaps%
+ CL\LWR@tempcolor%
+ FB\LWR@tempone% xfakebold
+ ]%
+\LWR@setcurrentfont%
\LWR@mhchem@origcesplit{#1}{#2}%
\end{lateximage}%
\endgroup%