From 559c5716cc7b017a069a92c24464ed556e3782e2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 12 Apr 2023 17:30:41 +0000 Subject: enotez support, tex4ht r1323 git-svn-id: svn://tug.org/texlive/trunk@66831 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 7 +++++ .../source/generic/tex4ht/mktex4ht-cnf.tex | 3 +- .../source/generic/tex4ht/tex4ht-4ht.tex | 32 +++++++++++++++++++++- .../source/generic/tex4ht/tex4ht-html4.tex | 13 ++++++++- 4 files changed, 52 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/source') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 1c44cdae8c3..4f986254f2f 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,10 @@ +2023-04-12 Michal Hoftich + + * tex4ht-4ht.tex (enotez.4ht), + * tex4ht-html4.tex (html4.4ht): added basic support for the Enotez + package. + https://tex.stackexchange.com/a/682624/2891 + 2023-04-10 Michal Hoftich * tex4ht-4ht.tex (longtable.4ht): fixed another \caption issue. diff --git a/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex b/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex index 7606228a296..ec8c5275638 100644 --- a/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex +++ b/Master/texmf-dist/source/generic/tex4ht/mktex4ht-cnf.tex @@ -1,4 +1,4 @@ -% $Id: mktex4ht-cnf.tex 1317 2023-04-03 13:19:40Z michal_h21 $ +% $Id: mktex4ht-cnf.tex 1323 2023-04-12 14:01:16Z michal_h21 $ % Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex. % Read by tex4ht-cond4ht. % @@ -67,6 +67,7 @@ \AddFile{9}{footnotebackref} \AddFile{9}{footnotebackref-hooks} \AddFile{9}{pagenote} +\AddFile{9}{enotez} \AddFile{9}{floatrow} \AddFile{9}{makeidx} \AddFile{9}{splitidx} diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index ad61bdcdf2d..051b6026dfa 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1322 2023-04-10 13:54:40Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1323 2023-04-12 14:01:16Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2023 TeX Users Group @@ -12752,6 +12752,36 @@ other packages (such as tablefootnote.sty) rely on them. >>> +%%%%%%%%%%%%%%%%%%%%%%%%%%% +\Section{enotez} +%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\<<< +% enotez.4ht (|version), generated from |jobname.tex +% Copyright 2023 TeX Users Group +| +| +\Hinput{enotez} +\endinput +>>> \AddFile{9}{enotez} + + +\<<< +\NewConfigure{enotezmark}{2} +\NewConfigure{enotezback}{2} +% patch commands that print note numbers, so we can add links +\ExplSyntaxOn +% \:currentnoteid contains the note number +\protected\def\:tempa #1#2{\def\:currentnoteid{#1}\a:enotezmark\o:enotez_write_mark:nn:{#1}{#2}\b:enotezmark} +\HLet\enotez_write_mark:nn\:tempa + +\protected\def\:tempa#1{\def\:currentnoteid{#1}\a:enotezback\o:enotez_write_list_number:n:{#1}\b:enotezback} +\HLet\enotez_write_list_number:n\:tempa + +\ExplSyntaxOff +>>> + + %%%%%%%%%%%%%%%%%%%%%%%%%%%% \Section{floatrow.sty} %%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex index 1d03dcdcd95..d5e99670d7c 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1320 2023-04-08 10:40:15Z michal_h21 $ +% $Id: tex4ht-html4.tex 1323 2023-04-12 14:01:16Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -5685,6 +5685,17 @@ Add links and backlinks to pagenotes \Configure{notenuminnotes}{\Link{pagenote-bk\:currentnoteid}{pagenote\:currentnoteid}}{\EndLink} >>> +%%%%%%%%%%%%%%%%%%%%% +\subsection{enotez} +%%%%%%%%%%%%%%%%%%%%% + +Add links and backlinks to pagenotes with the Enotez package + +\<<< +\Configure{enotezmark}{\Link{enotez\:currentnoteid}{enotez-bk\:currentnoteid}}{\EndLink} +\Configure{enotezback}{\Link{enotez-bk\:currentnoteid}{enotez\:currentnoteid}\HCode{}}{\HCode{}\EndLink} +>>> + %%%%%%%%%%%%%%%%%%%%% \subsection{Wrapfig} %%%%%%%%%%%%%%%%%%% -- cgit v1.2.3