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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon Dec 23 19:15:27 CET 2019


Author: michal_h21
Date: 2019-12-23 20:15:27 +0200 (Mon, 23 Dec 2019)
New Revision: 645

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed support for the symbolic footnote marks

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-12-20 15:34:18 UTC (rev 644)
+++ trunk/lit/ChangeLog	2019-12-23 18:15:27 UTC (rev 645)
@@ -1,3 +1,9 @@
+2019-12-23 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (footmisc.4ht): fixed support for the symbolic footnote
+	marks.
+	https://tex.stackexchange.com/a/521497/2891
+
 2019-12-20 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (biblatex.4ht): updated for the latest BibLaTeX version.

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2019-12-20 15:34:18 UTC (rev 644)
+++ trunk/lit/Makefile	2019-12-23 18:15:27 UTC (rev 645)
@@ -46,7 +46,7 @@
   biblatex.4ht biblatex-chicago.4ht book.4ht bussproofs.4ht \
   caption.4ht cleveref.4ht color.4ht colortbl.4ht \
   fontspec.4ht fontspec-4ht.lua fontspec-luatex.4ht fontspec-xetex.4ht \
-    framed.4ht frenchb.4ht floatpag.4ht \
+    footmisc.4ht framed.4ht frenchb.4ht floatpag.4ht \
   geometry.4ht graphics.4ht graphicx.4ht \
   hyperref.4ht \
 	imakeidx.4ht \

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-12-20 15:34:18 UTC (rev 644)
+++ trunk/lit/tex4ht-4ht.tex	2019-12-23 18:15:27 UTC (rev 645)
@@ -33538,10 +33538,45 @@
 %%%%%%%%%%%%%%%%%
 
 \<footmisc.4ht\><<<
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
-% footmisc.4ht                          |version %
-% Copyright (C) |CopyYear.2004.       Eitan M. Gurari         %
-|<TeX4ht copyright|>
+% footmisc.4ht (|version), generated from |jobname.tex
+% Copyright 2019 TeX Users Group
+|<TeX4ht license text|>
+
+\long\def\@footnotetext#1{\leavevmode
+   \vbox{%\IgnorePar
+      \leftskip0pt {\ht:everypar{}\parindent0pt\leavevmode}%
+      \long\def\:tempc##1{\protected at edef\@currentlabel{\the\csname c at footnote\endcsname}%
+\anc:lbl f{footnote}%
+\Configure{newlabel}{\cur:th\the\csname c at footnote\endcsname}{\protect\p at footmisc@footnote{\the\csname c at footnote\endcsname}}
+\a:footnotetext
+   \o:@makefntext:{\b:footnotetext \csname a:footnotebody\endcsname
+                {##1}\csname b:footnotebody\endcsname}\c:footnotetext
+}%
+\HLet\@makefntext\:tempc
+%
+      \reset at font\footnotesize
+      \color at begingroup
+        \@makefntext{\ignorespaces#1}%
+      \color at endgroup
+      \ht:special{t4ht@[}}\ht:special{t4ht@]}}
+
+% detect if the symbol or symbol* option were used
+% we can detect that by testing of \thefootnote macro
+
+\edef\footmisc:thefootnote{\expandafter\unexpanded\expandafter{\thefootnote}}
+\edef\footmisc:symbol{\unexpanded{\fnsymbol{footnote}}}
+\edef\footmisc:symbolstar{\unexpanded{\@fnsymbol\c at footnote}}
+
+\ifx\footmisc:thefootnote\footmisc:symbol
+  \newcommand\p at footmisc@footnote[1]{\@fnsymbol{#1}}
+\else
+  \ifx\footmisc:thefootnote\footmisc:symbolstar
+    \newcommand\p at footmisc@footnote[1]{\@fnsymbol{#1}}
+  \else
+    \newcommand\p at footmisc@footnote[1]{\p at footnote{#1}}
+  \fi
+\fi
+
 \Hinput{footmisc}
 \endinput
 >>>        \AddFile{9}{footmisc}



More information about the tex4ht-commits mailing list