diff options
author | Karl Berry <karl@freefriends.org> | 2021-04-11 21:33:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-04-11 21:33:43 +0000 |
commit | 86662024018682cdc86b1bd94ae021b0b39a23f8 (patch) | |
tree | 323a6697b8ce7367197edc4e2fe4feaffcb45469 /Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty | |
parent | 0305002960075b3f60f4125ed15d4dae571f55c3 (diff) |
lwarp
git-svn-id: svn://tug.org/texlive/trunk@58837 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty index 124bef6fac1..03505e42403 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-chemfig.sty @@ -16,8 +16,7 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. -\LWR@ProvidesPackagePass{chemfig}[2020/03/05] - +\LWR@ProvidesPackagePass{chemfig}[2021/02/28] \catcode`\_=11 @@ -33,14 +32,14 @@ \@ifpackagelater{chemfig}{2019/04/18}% {% 2019/04/18 or newer - - \LetLtxMacro\LWR@chemfig@origchemfig\chemfig - - \renewcommand*{\chemfig}[2][]{% - \begin{lateximage}[-chemfig-~\PackageDiagramAltText]% - \LWR@chemfig@origchemfig[#1]{#2}% - \end{lateximage}% - } + \xpretocmd{\CF_chemfiga} + {\begin{lateximage}[-chemfig-~\PackageDiagramAltText]} + {}{\LWR@patcherror{chemfig}{CF_chemfiga}} + + \xpatchcmd{\CF_chemfigb} + {\let\CF_flipstate\CF_zero} + {\end{lateximage}\let\CF_flipstate\CF_zero} + {}{\LWR@patcherror{chemfig}{CF_chemfigb}} \GlobalLetLtxMacro\LWR@chemfig@origCF_lewisc\CF_lewisc \gdef\CF_lewisc#1,#2\_nil{% |