[tex4ht-commits] [SCM] tex4ht updated: r1309 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Mar 22 14:48:40 CET 2023


Author: michal_h21
Date: 2023-03-22 13:48:40 +0000 (Wed, 22 Mar 2023)
New Revision: 1309

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
Log:
Added support for the pagenote package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2023-03-19 13:09:23 UTC (rev 1308)
+++ trunk/lit/ChangeLog	2023-03-22 13:48:40 UTC (rev 1309)
@@ -1,3 +1,10 @@
+2023-03-22  Michal Hoftich  <michal.h21 at 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 at gmail.com>
 
 	* tex4ht-4ht.tex (memhfixc.4ht): fixed interaction between Memoir

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2023-03-19 13:09:23 UTC (rev 1308)
+++ trunk/lit/mktex4ht-cnf.tex	2023-03-22 13:48:40 UTC (rev 1309)
@@ -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}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2023-03-19 13:09:23 UTC (rev 1308)
+++ trunk/lit/tex4ht-4ht.tex	2023-03-22 13:48:40 UTC (rev 1309)
@@ -12684,7 +12684,33 @@
 
 
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\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 @@
 \<config glossary\><<<
 \Configure{@begin}{theglossary}{\ind:defs}
 |<theglossary warning|>
-\warn:gls{\jobname}
+refextract\warn:gls{\jobname}
 >>>
 
 \<theglossary warning\><<<

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2023-03-19 13:09:23 UTC (rev 1308)
+++ trunk/lit/tex4ht-html4.tex	2023-03-22 13:48:40 UTC (rev 1309)
@@ -5648,6 +5648,17 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%%%
+\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}
 %%%%%%%%%%%%%%%%%%%
 



More information about the tex4ht-commits mailing list.