diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-cases.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-cases.sty | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-cases.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-cases.sty index c337b064ee0..b4985b5c6cf 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-cases.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-cases.sty @@ -15,7 +15,7 @@ %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. -\LWR@ProvidesPackagePass{cases}[2002/05/02] +\LWR@ProvidesPackagePass{cases}[2020/03/29] \BeforeBeginEnvironment{numcases}{ \begin{BlockClass}{displaymathnumbered} \LWR@newautoidanchor% @@ -37,6 +37,31 @@ \AfterEndEnvironment{subnumcases}{ \end{lateximage}\end{BlockClass} } + +\makeatletter +\begin{warpHTML} +\AtBeginDocument{ + \@ifpackageloaded{amsmath} + { + \xpatchcmd{\tagform@}{\leftprotrusion{(}}{(} + {} + {\LWR@patcherror{cases}{tagform@ A}}% + \xpatchcmd{\tagform@}{\rightprotrusion{)}}{)} + {} + {\LWR@patcherror{cases}{tagform@ B}}% + } + { + \xpatchcmd{\@eqnnum}{\leftprotrusion{(}}{(} + {} + {\LWR@patcherror{cases}{@eqnnum A}}% + \xpatchcmd{\@eqnnum}{\rightprotrusion{)}}{)} + {} + {\LWR@patcherror{cases}{@eqnnum A}}% + }% +} +\end{warpHTML} +\makeatother + \endinput %% %% End of file `lwarp-cases.sty'. |