Debian Codegraph @

texmf-dist/tex/generic/tex4ht/mdframed.4ht

raw
1 % mdframed.4ht (2025-06-29-13:34), generated from tex4ht-4ht.tex
2 % Copyright 2017-2025 TeX Users Group
3 %
4 % This work may be distributed and/or modified under the
5 % conditions of the LaTeX Project Public License, either
6 % version 1.3c of this license or (at your option) any
7 % later version. The latest version of this license is in
8 % http://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions
10 % of LaTeX version 2005/12/01 or later.
11 %
12 % This work has the LPPL maintenance status "maintained".
13 %
14 % The Current Maintainer of this work
15 % is the TeX4ht Project <http://tug.org/tex4ht>.
16 %
17 % If you modify this program, changing the
18 % version identification would be appreciated.
19 \immediate\write-1{version 2025-06-29-13:34}
20
21
22 \NewConfigure{mdframed}{2}
23 \NewConfigure{mdframedstyle}{1}
24 \NewConfigure{mdframetitle}{2}
25 \newcount\mdf:env:cnt
26 \def\mdf:id{mdframed-\the\mdf:env:cnt}
27 \def\:tempa#1{\global\advance\mdf:env:cnt by1\relax\a:mdframed\a:mdframedstyle%
28 \ifdefempty{\mdf@frametitle}{}{\mdfframedtitleenv{\mdf@frametitle}\a:mdframetitle\mdf@@frametitle@use\b:mdframetitle}\let\mdf@frametitle\@empty%
29 }
30 \HLet\mdf@trivlist\:tempa
31
32 \def\:tempa{\b:mdframed}
33 \HLet\endmdf@trivlist\:tempa
34
35 % disable frame drawing, it can be supported using CSS
36 \HLet\detected@mdf@put@frame\relax%
37
38 \append:def\mdf@@ignorelastdescenders{\let\orig:unskip\unskip\def\unskip{\let\unskip\orig:unskip}}%
39 \HLet\mdf@lrbox\:gobble
40 \HLet\endmdf@lrbox\relax
41 % disable compilation error caused by Mdframed's patch for Amsthm:
42 \AtBeginDocument{%
43 \let\mdf@patchamsthm\relax%
44 }
45 \def\thempfootnote{{\@alph\c@mpfootnote}}
46 \def\mdf@footnoteinput{%
47 \def\@mpfn{mpfootnote}\def\thempfn{\thempfootnote}\c@mpfootnote\z@
48 \let\@footnotetext\@mpfootnotetext
49 \@minipagerestore
50 \@setminipage
51 }
52
53 \Hinput{mdframed}
54 \endinput
55