Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2024, 08:07 PM   #1
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Change Default Cover Page (titlepage.xhtml)?

I'm trying to change the default cover page (titlepage.xhtml in the editor) that Calibre creates during conversion (or during a Polish). All I'd like to do is include the following at the top of the <body>:
Code:
<h1 title="Cover"></h1>
So that that the cover gets included when rebuilding the TOC in the editor.

I'd assumed that I could just copy the appropriate file from:

C:\Program Files\Calibre2\app\resources

over to:

C:\Users\[username]\AppData\Roaming\calibre\resources

and modify it (as noted in the manual):

https://manual.calibre-ebook.com/cus...ates-et-cetera

But, I can't find a file/folder that looks like it would control how that cover page looks. Any ideas?
enuddleyarbl is offline   Reply With Quote
Old 01-28-2024, 09:25 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,846
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
These are defined in code not via templates IIRC. In any case you should not be linking to the cover page in your toc. While that works in epub it wont in the kindle formats as they dont actually have a linkable cover.
kovidgoyal is offline   Reply With Quote
Old 01-28-2024, 09:28 PM   #3
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,093
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
I wouldn't add the header tag to the cover.

I tried it a couple times, and it forces an extra blank page.
Even though the <h1> tag is empty, the tag is there, so any margins and paddings are still forced onto the page which bumps the cover image to the next page.
Karellen is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ToC not linking to titlepage.xhtml for Cover image? Sting8 Conversion 1 01-17-2020 11:09 PM
Replace titlepage.xhtml gogu1904 Calibre 9 05-19-2019 02:38 PM
calibre's inserted cover file, titlepage.xhtml rhino79 Calibre 7 05-01-2015 02:27 PM
Change Default Format Opened When clicking a cover in cover browser? phaeren12 Library Management 11 09-19-2014 10:10 PM
Custom code in ePub titlepage.xhtml Mrs_Often Conversion 6 07-24-2012 12:36 PM


All times are GMT -4. The time now is 05:04 AM.


MobileRead.com is a privately owned, operated and funded community.