diff options
author | Norbert Preining <norbert@preining.info> | 2024-06-21 03:01:09 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-06-21 03:01:09 +0000 |
commit | 1a73c17aff5d228648d20cd009d2017c56795fe3 (patch) | |
tree | f06310e63de712ec2d24935fa03bf158512dca35 /support | |
parent | 583394bd47e04acdb8cd08ec2178911c088e1895 (diff) |
CTAN sync 202406210301
Diffstat (limited to 'support')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 7 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 42 |
2 files changed, 43 insertions, 6 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index dd7c62fc27..9fa8d8a125 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,5 +1,12 @@ 2024-06-17 Michal Hoftich <michal.h21@gmail.com> + * tex4ht-4ht.tex (footmisc.4ht): fixed handling of footnote counter + reset. + https://tex.stackexchange.com/a/720989/2891 + + +2024-06-17 Michal Hoftich <michal.h21@gmail.com> + * tex4ht-4ht.tex (tabularray.4ht): updated names of token lists that holds rowspan and colspan. https://tex.stackexchange.com/a/720800/2891 diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 0fd6e45cba..6993bc74f5 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1531 2024-06-17 19:40:15Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1532 2024-06-20 12:47:49Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2024 TeX Users Group @@ -37900,9 +37900,39 @@ Use \<footmisc.4ht\><<< % footmisc.4ht (|version), generated from |jobname.tex -% Copyright 2019 TeX Users Group +% Copyright 2019-2024 TeX Users Group |<TeX4ht license text|> +|<footmisc footnote counter|> +|<footmisc footnotetext|> +|<footmisc symbols|> + + +\Hinput{footmisc} +\endinput +>>> \AddFile{9}{footmisc} + +Footmisc can reset the normal footnote counter on every page. Footnote links are +then wrong, as they point to an earlier footnote. My solution is to use a global +counter that gives each footnote unique number and which doesn't rely on the footnote +symbol. + +\<footmisc footnote counter\><<< +\newcounter{:footnotes} + +\def\FNnum{\the\:footnotes} + +\HRestore\footnote +\def\:tempc{% + \HAssign\FNnum = \csname c@:footnotes\endcsname% + \stepcounter{:footnotes}% + \HAdvance\FNnum by 1% + \o:footnote:% +} +\HLet\footnote=\:tempc +>>> + +\<footmisc footnotetext\><<< \long\def\@footnotetext#1{\leavevmode \vbox{%\IgnorePar \leftskip0pt {\ht:everypar{}\parindent0pt\leavevmode}% @@ -37921,6 +37951,9 @@ Use \color@endgroup \ht:special{t4ht@[}}\ht:special{t4ht@]}} +>>> + +\<footmisc symbols\><<< % detect if the symbol or symbol* option were used % we can detect that by testing of \thefootnote macro @@ -37937,10 +37970,7 @@ Use \newcommand\p@footmisc@footnote[1]{\p@footnote{#1}} \fi \fi - -\Hinput{footmisc} -\endinput ->>> \AddFile{9}{footmisc} +>>> %%%%%%%%%%%%%%% \Section{tablefootnote} |