View Single Post
Old 06-12-2017, 12:01 PM   #10
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by famfam View Post
Where in Sigil do I have to enter this h6.h7-h6.hx? Can someone show me an example?
I'm assuming that Jellby referred to h6 tags with custom class names. For example:

Code:
<h6 class="h7">heading 7</h7>
<h6 class="h8">heading 8</h8> 
<h6 class="h9">heading 9</h6>
Of course, you'll need to define them in the main stylesheet. For example:

Code:
h6.h7 { 
    font-size: .67em;
}
 
h6.h8 { 
    font-size: .67em;
}
 
h6.h9 { 
    font-size: .67em;
}

Quote:
Originally Posted by famfam View Post
Yes, I also sometimes have books with more than 6 levels. Would be great, if one could make at least manually.
While (X)HTML only supports 6 headings, there doesn't seem to be a nesting limit as far as the IDPF is concerned and Sigil will also display more than 6 heading levels.
Since it's much easier to edit the TOC section of an epub3 nav document, you might want convert your epub2 book to an epub3 book with Sigil.

Here's an example epub3 nav doc TOC section with more than 6 headings:
Spoiler:
Code:
    <nav epub:type="toc" id="toc">
      <h1>Table of Contents</h1>
      <ol>
        <li>
          <a href="../Text/Section0001.xhtml">Heading 1</a>
          <ol>
            <li>
              <a href="../Text/Section0002.xhtml">Heading 2</a>
              <ol>
                <li>
                  <a href="../Text/Section0003.xhtml">Heading 3</a>
                  <ol>
                    <li>
                      <a href="../Text/Section0004.xhtml">Heading 4</a>
                      <ol>
                        <li>
                          <a href="../Text/Section0005.xhtml">Heading 5</a>
                          <ol>
                            <li>
                              <a href="../Text/Section0006.xhtml">Heading 6</a>
                              <ol>
                                <li>
                                  <a href="../Text/Section0007.xhtml">Heading 7</a>
                                  <ol>
                                    <li>
                                      <a href="../Text/Section0008.xhtml">Heading 8</a>
                                    </li>
                                  </ol>
                                </li>
                              </ol>
                            </li>
                          </ol>
                        </li>
                      </ol>
                    </li>
                  </ol>
                </li>
              </ol>
            </li>
          </ol>
        </li>
      </ol>
    </nav>

Of course you could also edit the toc.ncx file of an epub2 book.
For more information, see the attached epub2 and epub3 sample files.

In the future, please post German questions in the German MR forum or at least include a Google translated version of your post.
Attached Files
File Type: epub heading_test_epub2.epub (4.5 KB, 427 views)
File Type: epub heading_test_epub3.epub (5.0 KB, 401 views)

Last edited by Doitsu; 06-12-2017 at 02:04 PM.
Doitsu is offline   Reply With Quote