summaryrefslogtreecommitdiff
path: root/support/tex4ebook/tex4ebook-epub3.4ht
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-03-03 03:05:02 +0000
committerNorbert Preining <norbert@preining.info>2023-03-03 03:05:02 +0000
commitc000ad35f0ce69cc0466ad24b0647c1e295c0259 (patch)
tree6c64b429a374b5d60b67c2f728c71acb110c775c /support/tex4ebook/tex4ebook-epub3.4ht
parentfe8af26a7b8f32a0cc1b761e3ffb95ed0867a845 (diff)
CTAN sync 202303030305
Diffstat (limited to 'support/tex4ebook/tex4ebook-epub3.4ht')
-rw-r--r--support/tex4ebook/tex4ebook-epub3.4ht11
1 files changed, 8 insertions, 3 deletions
diff --git a/support/tex4ebook/tex4ebook-epub3.4ht b/support/tex4ebook/tex4ebook-epub3.4ht
index 9d49b624e6..0e1bcd85db 100644
--- a/support/tex4ebook/tex4ebook-epub3.4ht
+++ b/support/tex4ebook/tex4ebook-epub3.4ht
@@ -24,9 +24,10 @@
\Configure{toTocLink}{}{}
}{\b:NavMap}{}{}{}
%%%%%%%%%%%
-\Configure{NavMap}{\ifvmode\IgnorePar\fi\EndP\boolfalse{tocnoempty}\HCode{<nav id="toc" epub:type="toc">\Hnewline<ol>}%
+\newcount\:toccount
+\Configure{NavMap}{\ifvmode\IgnorePar\fi\EndP\boolfalse{tocnoempty}\global\advance\:toccount by1\HCode{<nav id="toc\the\:toccount" \ifnum\:toccount<2 epub:type="toc"\fi>\Hnewline<ol>}%
\opf:registerfilename{\FileName}
-\opf:add:property{nav}
+\ifnum\:toccount<2 \opf:add:property{nav}\fi
}{\usetoclevels{part,appendix,chapter,section,subsection,subsubsection}%
\ifbool{tocnoempty}{}{\HCode{<li><a href="\jobname.\:html">Document</a></li>}}
\HCode{</ol></nav>}}
@@ -76,6 +77,9 @@
% Structural elements
+\:CheckOption{fn-in}
+\if:Option
+\else
% Foootnote configuration for epub3
% Footnotes are printed directly after the paragraph they appeared in
% footnotebox - configure box in which footnotes are printed
@@ -91,7 +95,7 @@
\ifvoid\footnotebox\else\unvbox\footnotebox\fi%
\IgnorePar%
\bgroup%
- \fnlink{}{fn\FNnum x\minipageNum}\Tg<p>%
+ \fnlink{}{fn\FNnum x\minipageNum}\Tg<p>\AnchorLabel%
}{\EndNoFonts}
{%
\HCode{</p>\Hnewline}
@@ -114,3 +118,4 @@
\Css{.footnote{font-size:small;}}
\Css{.footnotes hr{width:30\%;margin:0 auto 0 0;}}
+\fi