summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty12
1 files changed, 11 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty
index a66820cbf93..124bef6fac1 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty
@@ -16,11 +16,21 @@
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
-\LWR@ProvidesPackagePass{chemfig}
+\LWR@ProvidesPackagePass{chemfig}[2020/03/05]
\catcode`\_=11
+\@ifpackagelater{chemfig}{2020/03/05}
+{
+ \xpretocmd\charge{\begin{lateximage}[-chemfig-~\PackageDiagramAltText]}
+ {}{\LWR@patcherror{chemfig}{charge}}
+ \xpretocmd\Charge{\begin{lateximage}[-chemfig-~\PackageDiagramAltText]}
+ {}{\LWR@patcherror{chemfig}{Charge}}
+ \xapptocmd\charge_c{\end{lateximage}}
+ {}{\LWR@patcherror{chemfig}{charge_c}}
+}{}
+
\@ifpackagelater{chemfig}{2019/04/18}%
{% 2019/04/18 or newer