diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-08 03:02:12 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-08 03:02:12 +0000 |
commit | bc2d0660f4f460b55009ab4e525f2a0e4cde6187 (patch) | |
tree | d35815089faf23c45f4f21690e42cfcc7c65a5fd /support/tex4ebook/tex4ebook.4ht | |
parent | 57edbaffbe7daad894e3036a4123acd03e0fdb9b (diff) |
CTAN sync 202009080302
Diffstat (limited to 'support/tex4ebook/tex4ebook.4ht')
-rw-r--r-- | support/tex4ebook/tex4ebook.4ht | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/support/tex4ebook/tex4ebook.4ht b/support/tex4ebook/tex4ebook.4ht index e623ac8bc2..6ee87ed3ae 100644 --- a/support/tex4ebook/tex4ebook.4ht +++ b/support/tex4ebook/tex4ebook.4ht @@ -157,7 +157,7 @@ href="#1" media-type="\a:CoverMimeType" />}} "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">\Hnewline}} %Get sanitized value of \title -%\def\Title{\Ref{TITLE+}} +\ifTag{TITLE+}{\def\Title{\LikeRef{TITLE+}}}{} % If title contains macros, SafeTitle should be configured % in the custom cfg file \NewConfigure{SafeTitle}[1]{\gdef\Title{#1}} @@ -255,7 +255,7 @@ href="#1" media-type="\a:CoverMimeType" />}} \def\navsection#1#2{ \ConfigureToc{#1}% {\expandafter\closelevels\expandafter{#2} - \a:NavSection\Ncx:Mark} + \def\curr:sect:type{#1}\a:NavSection\Ncx:Mark} {\c:NavSection} {} {\b:NavSection% @@ -361,16 +361,16 @@ href="#1" media-type="\a:CoverMimeType" />}} \Configure{toTocLink}{}{}% \Configure{NavSection}{\booltrue{tocnoempty}\HCode{\Hnewline<navPoint id="navPoint-}% \stepnavpoint\HCode{" playOrder="}% - \the\navpoint\HCode{">\Hnewline<navLabel>\Hnewline<text>}% + \the\navpoint\HCode{">\Hnewline<navLabel>\Hnewline<text><navmark type="\curr:sect:type">}% }{\HCode{</text>\Hnewline% </navLabel>\Hnewline}% \HCode{<content src="\navmapsrc" />}% -}{ }{\HCode{</navPoint>\Hnewline}} +}{\HCode{</navmark>}}{\HCode{</navPoint>\Hnewline}} % Meta inf \ncx:head % Book title \ncx:title -\tableofcontents%[part,chapter,likechapter,section,likesection,subsection,likesubsection]% +\tableofcontents[part,appendix,chapter,likechapter,appendixsec,section,likesection,appendixsubsec,subsection,likesubsection]% %Hack to get close tag working \HCode{</ncx>} \EndNoFonts |