Quote:
Originally Posted by shore_pk
I am trying to make a book that is a collection of booklists and reviews. I need all of them listed alphabetically, the historical books listed chronologically and the science and nature books listed alphabetically. I have around 80 listings and will have more in the future. [...]
|
Split it into 3 separate TOC files:
- Table of Contents
- Alphabetical
- Chronological
* * *
Tip: In your actual HTML files, be sure to use proper headings:
Code:
<h1>Part 1: Animals Doing Wacky Things</h1>
<h2>Chapter 1: The Cow Jumps</h2>
<h3>1.1. Over the Moon</h3>
<h3>1.2. Over the Barn</h3>
This allows you to use Sigil's
Tools > Table of Contents > Generate Table of Contents to create/update the main TOC files at the press of a button.
From there, you'd have to manually recreate the Alphabetical/Chronological versions:
Table of Contents
(This needs to be in your "actual reading order", like in a physical book, "from Page 1->99".)
Code:
<h2>Table of Contents</h2>
<p class="toc"><a href="../Text/Chapter01.xhtml">1. The Journey</a></p>
<p class="toc"><a href="../Text/Chapter02.xhtml">2. Begins</a></p>
<p class="toc"><a href="../Text/Chapter03.xhtml">3. Here</a></p>
Alphabetical
Code:
<h2>Alphabetical</h2>
<h3>B Stories</h3>
<p class="toc"><a href="../Text/Chapter02.xhtml">2. Begins</a></p>
<h3>H Stories</h3>
<p class="toc"><a href="../Text/Chapter03.xhtml">3. Here</a></p>
<h3>T Stories</h3>
<p class="toc"><a href="../Text/Chapter01.xhtml">1. The Journey</a></p>
Chronological
Code:
<h2>Chronological</h2>
<h3>2000 Stories</h3>
<p class="toc"><a href="../Text/Chapter03.xhtml">3. Here</a></p>
<h3>2001 Stories</h3>
<p class="toc"><a href="../Text/Chapter01.xhtml">1. The Journey</a></p>
<h3>2002 Stories</h3>
<p class="toc"><a href="../Text/Chapter02.xhtml">2. Begins</a></p>
Then you could use the simple links in every single case, and readers can use whichever TOC is the most helpful for their needs.
Quote:
Originally Posted by shore_pk
Is there a way to have page numbers in Sigil?
|
... there's no such thing as "pages" in ebooks.
All you'll need to do is link to the correct chapter/subchapter.
Quote:
Originally Posted by shore_pk
I would also want to put the page number with each hyperlinked listing on each of the 80 listings, if possible.
|
No. Don't do it. This is a
very bad idea.
Quote:
Originally Posted by shore_pk
I couldn't find one but would like to as I'm going to print a copy of the book.
|
The Print and Ebook are separate things.
In the Print book, yes, include page numbers in the TOC + headers/footers.
But in the Ebook, that stuff doesn't belong, because there's no such thing as page #s!
Side Note: Over the years, there's been TONS of discussion about this... and a similar idea comes up from "geniuses" who decide to leave the physical book's page numbers smack dab in the middle of text:
Code:
<p>This is a very long sentence that</p>
<p>199</p>
<p>is split between two pages.</p>
NO! And that will get you dinged by Amazon + other stores as readers report errors.