12-30-2016, 01:15 PM | #1 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
ToC - Page numbers to the right
In ToC titles should appear left side, page numbers right side. How to do? HTML Code:
<div id="textbox"> <p class="alignleft">Title A</p> <p class="alignright">10</p> </div> <div id="textbox"> <p class="alignleft">Title B</p> <p class="alignright">20</p> </div> <div style="clear: both;"></div> Code:
.alignleft { float: left; } .alignright { float: right; } Last edited by chaot; 01-03-2017 at 06:19 AM. Reason: remove HTML & CSS from code box |
12-30-2016, 03:25 PM | #2 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
The viewer in Calibre tolerates a lot more than valid EPUB.
Complain to you e-reader creator. This is not a Calibre problem. |
Advert | |
|
12-30-2016, 03:31 PM | #3 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I'm not sure why you even want to include page numbers in the first place...
|
12-30-2016, 03:38 PM | #4 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
This sort of thing isn't really a calibre editor question and would be better asked in either the Workshop or ePub forum.
Looking at your code, I think that you need add a "clear: both" after each left/right pair for this to work properly. I agree with others that what you are trying to do is odd. ETA: A word processor is a better tool for book authoring in general. An ePub editor is better used for tweaking after conversion from an authoring format. Last edited by jhowell; 12-30-2016 at 03:41 PM. |
01-02-2017, 11:19 AM | #5 | |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Quote:
Anyway, the names are only "placeholders". The question is: How to get something to right and to left side - in the same line? |
|
Advert | |
|
01-02-2017, 11:31 AM | #6 |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
|
01-02-2017, 12:25 PM | #7 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Why not just make the Titles / Subtltles / entries in the TOC clickable?
|
01-02-2017, 02:50 PM | #8 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Just that it is a convention in most e-books to have the table of contents be a formatted list of chapter names, each linked to the proper place in the book without page numbers. Page numbers have very limited usefulness in e-books.
|
01-02-2017, 03:06 PM | #9 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The problem with your putting page numbers is that they could be wrong. Changes in the font, line-height, and/or font size could cause your page number to be wrong. Incorrect page numbers just look silly and you look foolish for putting them there. Unless you know for sure that everyone reading your eBook will be using a program that supports ADE page number, putting in page numbers is a very bad idea.
|
01-03-2017, 07:23 AM | #10 | |||
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
To all!
Maybe we misunderstood ourselves here. There is that quasi-automatically configured and clickable ToC from calibre. In addition I will install here even several Indexes (List of contents). For the sake of clarity. Calibre ToC had in Tolino before 55, now 15 pages, each with 8 entries. (55 pages with all headings, 15 only h1, h3 & h3). Also reduced 15 pages are a lot, which makes the overview difficult. Therefore several list of contents, clickable without page numbers. You convinced me! Quote:
HTML Quote:
Now it works also in Tolino, but with 2 empty lines between each entry. Unacceptable! Quote:
Last edited by chaot; 01-03-2017 at 07:26 AM. |
|||
01-03-2017, 10:02 AM | #11 |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IMHO gedit is the Notepad of Linux. a TEXT editor, useful for simple code (view) touchup
OO/LO is a word processor. Used properly (within the constraints e-books allow), it is more of the 'Authorial' (WYSIWYG) tool |
01-03-2017, 02:39 PM | #12 | |||
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
@chaot - if you use Libre Office as a Word Processor (rather than a typewriter)**, save it as DOCX, and import into the calibre editor or into Sigil via its DOCX Input plugin, you should be able to dramatically reduce the amount of work you'll need to do in an ePub editor. ** Conversion from DOCX to ePub (via whatever means) works best if you do the formatting via your Word Processor's Styles & Templates features. BR |
|||
01-04-2017, 03:41 AM | #13 | |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Quote:
|
|
01-04-2017, 04:53 AM | #14 | |
Guru
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
|
Quote:
It's part of the readersoftware to show the pagenumbers in the ToC. I don't know why most readersoftware do not show pagenumbers. I use CoolReader, which ist showing pagenumbers in the ToC. The real pagenumbers. It is calculating them dynamic. Perhaps when opening the ebook, oder when calling the ToC. |
|
01-04-2017, 05:28 AM | #15 | |
Head of lunatic asylum
Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
The calibre configured Table of contents shows via Edit Book no page numbers, but in the corresponding content list on my device. No matter, page numbers seem to be a small mystery, I have been trying for quite some time to come to the trick.
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
autogenerated ToC and its page numbers | Arkadian | Conversion | 3 | 09-15-2014 09:46 AM |
Chapter Page Numbers Instead of Title Page Numbers | TheArtfulDodger | Devices | 1 | 11-18-2013 01:08 PM |
calibre EPUB->PDF: page numbers in printed TOC? | dancal | Conversion | 13 | 06-13-2013 08:32 PM |
Kindle (AZW3/MOBI) ebooks with "real page numbers" to PDF with same page numbers? | abvgd | Conversion | 2 | 05-24-2013 01:24 PM |
Removing TOC page numbers in MobiPocket Creator HTML Editor | pstjmack | Kindle Formats | 0 | 10-29-2012 09:19 AM |