summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r--support/TeX4ht/source/ChangeLog7
-rw-r--r--support/TeX4ht/source/mktex4ht-cnf.tex3
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex30
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex13
4 files changed, 49 insertions, 4 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 1d6da3207a..b1a7f8914b 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,10 @@
+2023-03-22 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (pagenote.4ht),
+ * tex4ht-html4.tex (html4.4ht): added support for the Pagenote
+ package.
+ https://tex.stackexchange.com/a/680395/2891
+
2023-03-19 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-4ht.tex (memhfixc.4ht): fixed interaction between Memoir
diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex
index f488730663..4b0cba3f4f 100644
--- a/support/TeX4ht/source/mktex4ht-cnf.tex
+++ b/support/TeX4ht/source/mktex4ht-cnf.tex
@@ -1,4 +1,4 @@
-% $Id: mktex4ht-cnf.tex 1308 2023-03-19 13:09:23Z michal_h21 $
+% $Id: mktex4ht-cnf.tex 1309 2023-03-22 13:48:40Z michal_h21 $
% Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex.
% Read by tex4ht-cond4ht.
%
@@ -65,6 +65,7 @@
\AddFile{9}{subcaption}
\AddFile{9}{footnotebackref}
\AddFile{9}{footnotebackref-hooks}
+\AddFile{9}{pagenote}
\AddFile{9}{floatrow}
\AddFile{9}{makeidx}
\AddFile{9}{splitidx}
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 4cb3efa66c..beb17eeabc 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1308 2023-03-19 13:09:23Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1309 2023-03-22 13:48:40Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -12684,6 +12684,32 @@ other packages (such as tablefootnote.sty) rely on them.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{pagenote}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<pagenote.4ht\><<<
+% pagenote.4ht (|version), generated from |jobname.tex
+% Copyright 2023 TeX Users Group
+|<TeX4ht license text|>
+|<pagenote definitions|>
+\Hinput{pagenote}
+\endinput
+>>> \AddFile{9}{pagenote}
+
+
+\<pagenote definitions\><<<
+% patch commands that print note numbers, so we can add links
+\NewConfigure{notenumintext}{2}
+\def\:tempa#1{\a:notenumintext\o:notenumintext:{#1}\b:notenumintext}
+\HLet\notenumintext\:tempa
+
+\NewConfigure{notenuminnotes}{2}
+% we must save the note id in \:currentnoteid, to make it available in \Configure{notenuminnotes}
+\def\:tempa#1{\def\:currentnoteid{#1}\a:notenuminnotes\o:notenuminnotes:{#1}\b:notenuminnotes}
+\HLet\notenuminnotes\:tempa
+
+>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\Section{floatrow.sty}
@@ -13377,7 +13403,7 @@ The above are problematic when spaces are present.
\<config glossary\><<<
\Configure{@begin}{theglossary}{\ind:defs}
|<theglossary warning|>
-\warn:gls{\jobname}
+refextract\warn:gls{\jobname}
>>>
\<theglossary warning\><<<
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index d6e02f520e..7b0733f3aa 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1307 2023-03-15 13:39:09Z michal_h21 $
+% $Id: tex4ht-html4.tex 1309 2023-03-22 13:48:40Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -5648,6 +5648,17 @@ An alternative css-based approach:
>>>
%%%%%%%%%%%%%%%%%%%%%
+\subsection{pagenote}
+%%%%%%%%%%%%%%%%%%%%%
+
+Add links and backlinks to pagenotes
+
+\<configure html4 pagenote\><<<
+\Configure{notenumintext}{\Link{pagenote\thepagenote}{pagenote-bk\thepagenote}}{\EndLink}
+\Configure{notenuminnotes}{\Link{pagenote-bk\:currentnoteid}{pagenote\:currentnoteid}}{\EndLink}
+>>>
+
+%%%%%%%%%%%%%%%%%%%%%
\subsection{Wrapfig}
%%%%%%%%%%%%%%%%%%%