summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-29 23:01:08 +0000
committerKarl Berry <karl@freefriends.org>2018-04-29 23:01:08 +0000
commit962840188681e1d6f4aec0ebf07e05a70609325d (patch)
treee52ae47b050b61688ebd40d705b32c5031c2b200 /Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty
parent52c3c8ff1c0e07c4437eaea8df993e626fc9a52a (diff)
lwarp (26apr18)
git-svn-id: svn://tug.org/texlive/trunk@47491 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty14
1 files changed, 13 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty
index e6bd5b2d5c5..7704450d15c 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty
@@ -127,10 +127,22 @@
\def\@endtheorem{\endtrivlist\endBlockClass\@endpefalse }
\AtBeginDocument{
+\@ifundefined{LWR@orig@openbox}{
+\LetLtxMacro\LWR@orig@openbox\openbox
+\LetLtxMacro\LWR@orig@blacksquare\blacksquare
+\LetLtxMacro\LWR@orig@Box\Box
+
\def\openbox{\text{\HTMLunicode{25A1}}}% UTF-8 white box
\def\blacksquare{\text{\HTMLunicode{220E}}}% UTF-8 end-of-proof
\def\Box{\text{\HTMLunicode{25A1}}}% UTF-8 white box
-}
+
+\appto\LWR@restoreorigformatting{%
+\LetLtxMacro\openbox\LWR@orig@openbox%
+\LetLtxMacro\blacksquare\LWR@orig@blacksquare%
+\LetLtxMacro\Box\LWR@orig@Box%
+}% appto
+}{}% @ifundefined
+}% AtBeginDocument
\renewenvironment{proof}[1][\proofname]{\par
\LWR@forcenewpage% lwarp
\BlockClass{amsthmproof}% lwarp