summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/breqn.4ht
blob: 6bb34515fd4c04ee5cfcdab641944cac3d9cf2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
% breqn.4ht (2022-04-25-13:36), generated from tex4ht-4ht.tex
% Copyright 2021 TeX Users Group
% Copyright 2009-2022 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project <http://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.
\immediate\write-1{version 2022-04-25-13:36}

\renewenvironment{dmath*}[1][]{\[}{\]}
\renewenvironment{dmath}[1][]{\begin{equation}}{\end{equation}}
\renewenvironment{dsuspend}{}{\par}

% enumerate equation for \begin{dseries}
\def\@dseries[#1]{%
  \if\eq@hasNumber%
    \refstepcounter{equation}%
  \fi
  \begingroup%
   \a:equation%
   \ignorespaces%
}


% mimic the equatio environment
\def\end@dseries{%
  \b:equation
  \if\eq@hasNumber%
  (\arabic{equation})%
  \fi%
\c:equation%
}

% this macro prints spurious equation number to the document, so we just reset it
\def\grp@finish{%
  \setbox\GRP@wholebox\vbox{%
    \let\breqn@elt\eqgrp@elt
    \the\GRP@queue
  }%
  \unvbox\GRP@wholebox
}

% the \EQ@displayinfo is used by other commands, it isn't useful in the HTML conversion
\def\eq@nulldisplay{%
  \xdef\EQ@displayinfo{%
    \relax}%
}

%% commands
% fix wrong handling of fonts in \condition
\newcommand\:condition@a[2][\conditionpunct]{%
  \unpenalty\unskip\unpenalty\unskip % BRM Added
  \mbox{#1}%
  \hskip\conditionsep
  \ \if@tempswa\mbox{#2}\else\mbox{$\textmath@setup #2$}\fi
  \endgroup
}

\HLet\condition@a\:condition@a


\Hinput{breqn}
\endinput