[tex4ht-commits] [SCM] tex4ht updated: r1592 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Fri Nov 1 22:37:51 CET 2024
Author: michal_h21
Date: 2024-11-01 21:37:51 +0000 (Fri, 01 Nov 2024)
New Revision: 1592
Modified:
trunk/lit/ChangeLog
trunk/lit/mktex4ht-cnf.tex
trunk/lit/tex4ht-4ht.tex
Log:
Added support for the Manyfoot package
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2024-10-29 13:48:36 UTC (rev 1591)
+++ trunk/lit/ChangeLog 2024-11-01 21:37:51 UTC (rev 1592)
@@ -1,3 +1,10 @@
+2024-11-01 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (
+ usepackage.4ht, manyfoot.4ht, manyfoot-hooks.4ht
+ ): added support for the Manyfoot package.
+ https://tex.stackexchange.com/a/729975/2891
+
2024-10-29 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (french.4ht),
Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex 2024-10-29 13:48:36 UTC (rev 1591)
+++ trunk/lit/mktex4ht-cnf.tex 2024-11-01 21:37:51 UTC (rev 1592)
@@ -340,6 +340,8 @@
\AddFile{9}{footmisc}
\AddFile{9}{tablefootnote}
\AddFile{9}{marginnote}
+\AddFile{9}{manyfoot}
+\AddFile{9}{manyfoot-hooks}
\AddFile{9}{writer}
\AddFile{9}{mdwlist}
\AddFile{9}{sverb}
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2024-10-29 13:48:36 UTC (rev 1591)
+++ trunk/lit/tex4ht-4ht.tex 2024-11-01 21:37:51 UTC (rev 1592)
@@ -38490,6 +38490,61 @@
\HLet\@mn@@@marginnote\:tempa
>>>
+%%%%%%%%%%%%%%%%%%%%%%%%
+\Section{manyfoot}
+%%%%%%%%%%%%%%%%%%%%%%%%
+
+\<manyfoot.4ht\><<<
+% manyfoot.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht license text|>
+
+
+\Hinput{manyfoot}
+\endinput
+>>> \AddFile{9}{manyfoot}
+
+
+\<add to usepackage\><<<
+\Configure{PackageHooks}{manyfoot.sty}{manyfoot-hooks.4ht}
+>>>
+
+\<manyfoot-hooks.4ht\><<<
+% manyfoot-hooks.4ht (|version), generated from |jobname.tex
+% Copyright 2024 TeX Users Group
+|<TeX4ht license text|>
+
+\:AtEndOfPackage{%
+|<declare manyfoot footnote|>
+}
+
+\endinput
+>>> \AddFile{9}{manyfoot-hooks}
+
+The Manyfoot package provides the \''\DeclareNewFootnote' command to
+declare new footnote types. The following code catches these new
+commands, and redefines them to produce normal footnotes, just with
+changed footnote mark.
+
+See \Link[https://tex.stackexchange.com/a/729975/2891]{}{} this answer\EndLink
+for an example.
+
+\<declare manyfoot footnote\><<<
+\let\o:MFL at declare:\MFL at declare
+\def\manyfoot:declarefn#1{%
+ \expandafter\renewcommand\csname footnote#1\endcsname[1]{%
+ \stepcounter{footnote#1}%
+ \renewcommand\thefootnote{\csname thefootnote#1\endcsname}%
+ \footnote{##1}%
+ }%
+}
+\def\MFL at declare#1#2[#3]{%
+ \o:MFL at declare:{#1}{#2}[#3]%
+ \manyfoot:declarefn{#2}%
+}%
+
+>>>
+
%%%%%%%%%%%%%%%
\Section{Other}
%%%%%%%%%%%%%%%%%
More information about the tex4ht-commits
mailing list.