diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-12 17:30:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-12 17:30:41 +0000 |
commit | 559c5716cc7b017a069a92c24464ed556e3782e2 (patch) | |
tree | f7514a8e17d4b56741f1e3072eff59b366f83309 /Master/texmf-dist/source | |
parent | 20b9df8870a1f23935caf66d089b82c2c3576d55 (diff) |
enotez support, tex4ht r1323
git-svn-id: svn://tug.org/texlive/trunk@66831 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
4 files changed, 52 insertions, 3 deletions
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 <michal.h21@gmail.com> + + * 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 <michal.h21@gmail.com> * 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\><<< +% enotez.4ht (|version), generated from |jobname.tex +% Copyright 2023 TeX Users Group +|<TeX4ht license text|> +|<enotez definitions|> +\Hinput{enotez} +\endinput +>>> \AddFile{9}{enotez} + + +\<enotez definitions\><<< +\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. % @@ -5686,6 +5686,17 @@ Add links and backlinks to pagenotes >>> %%%%%%%%%%%%%%%%%%%%% +\subsection{enotez} +%%%%%%%%%%%%%%%%%%%%% + +Add links and backlinks to pagenotes with the Enotez package + +\<configure html4 enotez\><<< +\Configure{enotezmark}{\Link{enotez\:currentnoteid}{enotez-bk\:currentnoteid}}{\EndLink} +\Configure{enotezback}{\Link{enotez-bk\:currentnoteid}{enotez\:currentnoteid}\HCode{<sup>}}{\HCode{</sup>}\EndLink} +>>> + +%%%%%%%%%%%%%%%%%%%%% \subsection{Wrapfig} %%%%%%%%%%%%%%%%%%% |