[Libreoffice-bugs] [Bug 114164] EPUB Export: Headings Levels other than Heading 1 are omitted in Outline
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 1 09:53:35 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=114164
--- Comment #3 from Kevin Suo <suokunlong at 126.com> ---
These are very good epub3 samples:
http://idpf.github.io/epub3-samples/30/samples.html
Among these, the 2nd one, "Children's Literature", seems to have a multi-level
TOC. The source codes for this epub can be found at:
https://github.com/IDPF/epub3-samples/tree/master/30/childrens-literature/EPUB
I did a brief analysis of the toc.ncx, and find that the implementation is
simple: (i.e., navPoint inside navPoint)
<navPoint id="np-319">
<navLabel>
<text>190 A FOUR-LEAVED CLOVER</text>
</navLabel>
<content src="s04.xhtml#pgepubid00503"/>
<navPoint id="d1e54">
<navLabel>
<text> I. The Rabbi and the Diadem </text>
</navLabel>
<content src="s04.xhtml#pgepubid99001"/>
</navPoint>
<navPoint id="d1e60">
<navLabel>
<text> II. Friendship </text>
</navLabel>
<content src="s04.xhtml#pgepubid99002"/>
</navPoint>
<navPoint id="d1e66">
<navLabel>
<text> III. True Charity </text>
</navLabel>
<content src="s04.xhtml#pgepubid99003"/>
</navPoint>
<navPoint id="d1e72">
<navLabel>
<text> IV. An Eastern Garden </text>
</navLabel>
<content src="s04.xhtml#pgepubid99004"/>
</navPoint>
</navPoint>
Also, you do not need to separate the sub-sections. Set a "name=pgepubid99001"
in the target heading and use sth like src="s04.xhtml#pgepubid99001" in the
TOC.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171201/dfe952ce/attachment.html>
More information about the Libreoffice-bugs
mailing list