| 1 |
% breqn.4ht (2022-04-25-13:36), generated from tex4ht-4ht.tex |
| 2 |
% Copyright 2021 TeX Users Group |
| 3 |
% Copyright 2009-2022 TeX Users Group |
| 4 |
% |
| 5 |
% This work may be distributed and/or modified under the |
| 6 |
% conditions of the LaTeX Project Public License, either |
| 7 |
% version 1.3c of this license or (at your option) any |
| 8 |
% later version. The latest version of this license is in |
| 9 |
% http://www.latex-project.org/lppl.txt |
| 10 |
% and version 1.3c or later is part of all distributions |
| 11 |
% of LaTeX version 2005/12/01 or later. |
| 12 |
% |
| 13 |
% This work has the LPPL maintenance status "maintained". |
| 14 |
% |
| 15 |
% The Current Maintainer of this work |
| 16 |
% is the TeX4ht Project <http://tug.org/tex4ht>. |
| 17 |
% |
| 18 |
% If you modify this program, changing the |
| 19 |
% version identification would be appreciated. |
| 20 |
\immediate\write-1{version 2022-04-25-13:36} |
| 21 |
|
| 22 |
\renewenvironment{dmath*}[1][]{\[}{\]} |
| 23 |
\renewenvironment{dmath}[1][]{\begin{equation}}{\end{equation}} |
| 24 |
\renewenvironment{dsuspend}{}{\par} |
| 25 |
|
| 26 |
% enumerate equation for \begin{dseries} |
| 27 |
\def\@dseries[#1]{% |
| 28 |
\if\eq@hasNumber% |
| 29 |
\refstepcounter{equation}% |
| 30 |
\fi |
| 31 |
\begingroup% |
| 32 |
\a:equation% |
| 33 |
\ignorespaces% |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
% mimic the equatio environment |
| 38 |
\def\end@dseries{% |
| 39 |
\b:equation |
| 40 |
\if\eq@hasNumber% |
| 41 |
(\arabic{equation})% |
| 42 |
\fi% |
| 43 |
\c:equation% |
| 44 |
} |
| 45 |
|
| 46 |
% this macro prints spurious equation number to the document, so we just reset it |
| 47 |
\def\grp@finish{% |
| 48 |
\setbox\GRP@wholebox\vbox{% |
| 49 |
\let\breqn@elt\eqgrp@elt |
| 50 |
\the\GRP@queue |
| 51 |
}% |
| 52 |
\unvbox\GRP@wholebox |
| 53 |
} |
| 54 |
|
| 55 |
% the \EQ@displayinfo is used by other commands, it isn't useful in the HTML conversion |
| 56 |
\def\eq@nulldisplay{% |
| 57 |
\xdef\EQ@displayinfo{% |
| 58 |
\relax}% |
| 59 |
} |
| 60 |
|
| 61 |
%% commands |
| 62 |
% fix wrong handling of fonts in \condition |
| 63 |
\newcommand\:condition@a[2][\conditionpunct]{% |
| 64 |
\unpenalty\unskip\unpenalty\unskip % BRM Added |
| 65 |
\mbox{#1}% |
| 66 |
\hskip\conditionsep |
| 67 |
\ \if@tempswa\mbox{#2}\else\mbox{$\textmath@setup #2$}\fi |
| 68 |
\endgroup |
| 69 |
} |
| 70 |
|
| 71 |
\HLet\condition@a\:condition@a |
| 72 |
|
| 73 |
|
| 74 |
\Hinput{breqn} |
| 75 |
\endinput |
| 76 |
|
| 77 |
|