|
|
#16 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,516
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre does not generate a contents list when creating epub files. If your epub has a toc as part of its main text, then that toc was present in the input document. Do this echo test > test.txt && ebook-convert test.txt .epub && ebook-viewer test.epub You will see that the epub has no inline TOC, i.e. it has only two pages, the cover and a page with the single word test on it.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#17 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Nov 2012
Device: none
|
The trouble is, TOC means two things: for me, it originally meant the table of contents you see in the book (that is what I want to remove). But it also means the toc.ncx, which as you say, is mandated by the EPUB spec. So, I have already made up my mind, but because of this ambiguity, I fear I have not previously made myself clear.
Thanks for the information about TOC creation: indeed, the generated HTML from which the EPUB was generated contains a TOC, so it seems I just need to suppress that. If I remove it manually, I get the result I'm after. Hence, I shall chase the problem up the toolchain (the next step being in LaTeXML). Thanks very much for your patient help! |
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 555
Karma: 422221
Join Date: Jul 2010
Location: UK
Device: Sony PRS-300 & Kindle PW
|
[Sorry! another out of step redundant posting. I must've forgot to press refresh]
Last edited by Agama; 11-29-2012 at 10:09 AM. Reason: Obsoleted |
|
|
|
|
|
#19 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Nov 2012
Device: none
|
Calibre, a Nook and FBReaderJ all open the book at the trivial table of contents, which is unhelpful.
As kovidgoyal pointed out, the problem was actually in the HTML I used to generate the EPUB. I have now modified my conversion script to remove the trivial TOC information from the HTML before calling ebook-convert; Calibre then generates the desired empty TOC, and the various readers open the book at the start of the story. The only remaining task I have is to modify my script so that it only removes the TOC when it is trivial: obviously I do not want to remove non-trivial TOCs. When I've done this I'll publish my script for other users of LaTeXML. |
|
|
|
|
|
#20 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
I have a Sony Reader PRS-650. The toc.ncx does NOTHING to the ePub when I am reading it. It has no effect where the ePub opens. When I first open the ePub, it opens at the first page which is the cover. The toc.ncx does not even display unless I decide to display it.
So what does toc.ncx do that you don't want it to do?
__________________
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ToC detected but not transferred when converting from epub to pdf | Eoannis | Conversion | 2 | 03-16-2012 04:41 AM |
| epub to epub converting: making chapters? | Joy736 | Conversion | 8 | 10-30-2011 04:47 PM |
| converting from HTM to ePUb - can't get TOC right | davidm99 | Conversion | 1 | 04-12-2011 10:47 PM |
| TOC disappears when converting from .prc to epub | baselworld | Calibre | 3 | 09-06-2010 02:10 AM |
| Converting a web page to epub with TOC | philosopherdog | Calibre | 5 | 07-23-2010 07:55 AM |