From fcc8719f694a93c7e3780e46108aad8b84913575 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 25 Apr 2022 21:04:28 +0000 Subject: breqn support, tex4ht r1116; external docs in subdirs, tex4ht r1117 git-svn-id: svn://tug.org/texlive/trunk@63141 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/breqn.4ht | 77 ++++++++++++++++++++++ Master/texmf-dist/tex/generic/tex4ht/xr-hyper.4ht | 13 ++-- .../tex/generic/tex4ht/xrhyper-hooks.4ht | 8 ++- 3 files changed, 91 insertions(+), 7 deletions(-) create mode 100644 Master/texmf-dist/tex/generic/tex4ht/breqn.4ht (limited to 'Master/texmf-dist/tex/generic') diff --git a/Master/texmf-dist/tex/generic/tex4ht/breqn.4ht b/Master/texmf-dist/tex/generic/tex4ht/breqn.4ht new file mode 100644 index 00000000000..6bb34515fd4 --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/breqn.4ht @@ -0,0 +1,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 . +% +% 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 + + diff --git a/Master/texmf-dist/tex/generic/tex4ht/xr-hyper.4ht b/Master/texmf-dist/tex/generic/tex4ht/xr-hyper.4ht index 9b55d050be6..5563be7ba4d 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/xr-hyper.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/xr-hyper.4ht @@ -1,6 +1,6 @@ -% xr-hyper.4ht (2016-12-21-15:03), generated from tex4ht-4ht.tex +% xr-hyper.4ht (2022-04-25-13:36), generated from tex4ht-4ht.tex % Copyright 2003-2009 Eitan M. Gurari -% Copyright 2009-2016 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 @@ -17,7 +17,7 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2016-12-21-15:03} +\immediate\write-1{version 2022-04-25-13:36} \let\XR:loop=\XR@loop \def\XR@loop#1{% @@ -52,8 +52,11 @@ \ifeof\@inputcheck\expandafter\XR@aux \else\expandafter\XR@read\fi} - \def\XRrEfLiNK[#1]#2#3{\a:xr[#1]{#2}{}% - \ifx\hyperrefLabel\:UnDef #3\else \hyperrefLabel\fi \b:xr} + \def\XRrEfLiNK[#1]#2#3{% + \filename@parse{#1}% Get basename of the linked html file, + % xr:dir\filename@base contains file's directory + \a:xr[\csname xr:dir:\filename@base\endcsname#1]{#2}{}% + \ifx\hyperrefLabel\:UnDef #3\else \hyperrefLabel\fi \b:xr} \NewConfigure{xr}{2} \Configure{xr}{\Link}{\EndLink} \def\XR:rEfLiNK#1#2#3#4#5{{\xr:rEfLiNK#1}{\xr:rEfLiNK#2}{\xr:rEfLiNK#3}} diff --git a/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht index 07b0c5a3f9a..a45f83dda3f 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/xrhyper-hooks.4ht @@ -1,4 +1,4 @@ -% xrhyper-hooks.4ht (2020-10-17-13:53), generated from tex4ht-4ht.tex +% xrhyper-hooks.4ht (2022-04-25-13:36), generated from tex4ht-4ht.tex % Copyright 2020 TeX Users Group % % This work may be distributed and/or modified under the @@ -16,10 +16,14 @@ % % If you modify this program, changing the % version identification would be appreciated. -\immediate\write-1{version 2020-10-17-13:53} +\immediate\write-1{version 2022-04-25-13:36} \:AtEndOfPackage{\let\XR:\XR@ \def\XR@[#1][#2]#3{% + % save directory for the linked file + \filename@parse{#3} + % \filename@base is filename, \filename@area directory + \expandafter\xdef\csname xr:dir:\filename@base\endcsname{\filename@area} \AtBeginDocument{\XR:[#1][#2]{#3}} }% } -- cgit v1.2.3