summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r--support/TeX4ht/source/ChangeLog11
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex10
2 files changed, 18 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index b7ad95ba12..d951439fd6 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,14 @@
+2022-12-26 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (mdframed.4ht): prevent compilation error when we
+ convert mdframed environment to picture and amsthm package is
+ loaded.
+ https://tex.stackexchange.com/a/669526/2891
+
+ * tex4ht-4ht.tex (latex.4ht): declared \begin and \end as robust
+ commands.
+ https://tex.stackexchange.com/a/669675/2891
+
2022-12-24 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-4ht.tex (mdframed.4ht): fixed support for Mdframed used
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 2e301d2010..d57d1e294c 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1276 2022-12-24 12:44:15Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1278 2022-12-26 19:24:35Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -6953,7 +6953,7 @@ and the command \`'\end{xxx}' referes to the meaning of \`'\endxxx'.
\pend:defI\begin{\let\chk:pic|=\EndPicture }
\let\o:begin:|=\begin
\let\choose:begin\@firstoftwo
-\def\begin#1{\csname @begin:#1\endcsname
+\DeclareRobustCommand\begin[1]{\csname @begin:#1\endcsname
\choose:begin
{\let\choose:begin\@firstoftwo |<revised begin|>}%
{\o:begin:{#1}}}
@@ -7029,7 +7029,7 @@ are initiated within \''\begin{...}'. For instance, in eqnarray there
\<latex ltmiscen\><<<
\let\o:end:|=\end
-\def\end#1{\choose:begin
+\DeclareRobustCommand\end[1]{\choose:begin
{|<revised end|>}%
{\o:end:{#1}}}
>>>
@@ -28019,6 +28019,10 @@ We need to use dvips driver with XeLaTeX
\append:def\mdf@@ignorelastdescenders{\let\orig:unskip\unskip\def\unskip{\let\unskip\orig:unskip}}%
\HLet\mdf@lrbox\:gobble
\HLet\endmdf@lrbox\relax
+% disable compilation error caused by Mdframed's patch for Amsthm:
+\AtBeginDocument{%
+ \let\mdf@patchamsthm\relax%
+}
\Hinput{mdframed}
\endinput
>>> \AddFile{9}{mdframed}