[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 Nov 16 19:52:22 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=114164

--- Comment #8 from lbartolome <lbartolome at gmail.com> ---
(In reply to Miklos Vajna from comment #2)
> Can you provide a sample EPUB that has this feature? Our current
> table-of-contents lists the XHTML files inside the EPUB, and we split the
> XHTML files on heading 1 paragraphs.
> 
> So listing heading2, etc. in the table-of-contents would either require some
> kind of link not only to the XHTML file, but also a bookmark inside that
> file, or would mean more split (even on heading 2, etc), which is also
> unwanted.
> 
> So the first step here would be to find out what EPUB markup is desired to
> have this.

Miklos, this might be a useful way to handle it, they included an id for the
desired headers instead of adding bookmarks. With the extension you can also
select if you want page breaks at header levels different than 1 or not.
<!-- This file was converted to xhtml by Writer2xhtml ver. 1.6.1. See
http://writer2latex.sourceforge.net for more info. --><head>
    <title></title>
    <link href="../Styles/styles1.css" rel="stylesheet" type="text/css"/>
  </head>
  <body dir="ltr">
    <h1 id="toc0">Ñsjdna</h1>
    <p class="Textbody"> </p>
    <p class="Textbody"> </p>
    <h2 id="toc1">i<ksjdas</h2>
    <p class="Textbody"> </p>
    <h3 id="toc2">i<sjdasd</h3>
    <p class="Textbody"> </p>

-- 
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/20181116/c98b7c10/attachment.html>


More information about the Libreoffice-bugs mailing list