Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-31-2026, 11:11 AM   #1
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 995
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Inserting a Page at the Beginning of the Book

Hi everyone, when I use Convert Books → Output Settings → Structure Detection → Insert Metadata on a Page at the Beginning of the Book, I'd like to be able to choose which fields to display. Is there a template for this, or how do you handle it?

For example, removing the publisher and date and adding the page count and the series number (if applicable).
dunhill is offline   Reply With Quote
Old 01-31-2026, 11:13 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,076
Karma: 150871335
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by dunhill View Post
Hi everyone, when I use Convert Books → Output Settings → Structure Detection → Insert Metadata on a Page at the Beginning of the Book, I'd like to be able to choose which fields to display. Is there a template for this, or how do you handle it?

For example, removing the publisher and date and adding the page count and the series number (if applicable).
As for automating which fields get put on this first page, I see no way to specify which fields are used/not used.

Manually with the editor works after the conversion. If you don't need to convert other then to get this one page, you ca do it in the editor without converting.

Last edited by JSWolf; 01-31-2026 at 11:18 AM.
JSWolf is offline   Reply With Quote
Advert
Old 01-31-2026, 12:06 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,515
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Create a Custom Jacket by placing your version of
C:\Program Files\Calibre2\app\resources\jacket
in the configuration folder: resources\jacket
theducks is offline   Reply With Quote
Old 01-31-2026, 12:14 PM   #4
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 995
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
I thought about using the Modify EPUB plugin and Add/Replace Metadata Jacket, and editing this HTML by adding:
Code:
<tr> <td class="cbj_label">Pages:</td> <td class="cbj_content">{#pages}</td> </tr>
But it's not retrieving any data
dunhill is offline   Reply With Quote
Old 01-31-2026, 02:11 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,515
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dunhill View Post
I thought about using the Modify EPUB plugin and Add/Replace Metadata Jacket, and editing this HTML by adding:
Code:
<tr> <td class="cbj_label">Pages:</td> <td class="cbj_content">{#pages}</td> </tr>
But it's not retrieving any data
Just to be clear. You ARE using the method I outlined above for those edits?
theducks is offline   Reply With Quote
Advert
Old 01-31-2026, 02:51 PM   #6
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 995
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by theducks View Post
Just to be clear. You ARE using the method I outlined above for those edits?
If you find the template.xhtml file in resources\jacket and modify it like this
Attached Files
File Type: txt template.txt (1.9 KB, 18 views)
dunhill is offline   Reply With Quote
Old 01-31-2026, 03:38 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,515
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I am far from a expert.
I did find this note in the matching CSS:
Code:
 <!-- 
        In addition you can add code to show the values of custom columns here.
        The value is available as _column_name and the title as
        _column_name_label.  For example, if you have a custom column with
        label #genre, you can add it to this template with _genre_label and
        _genre. Note that the # is replaced by an underscore. For example
        
        <div style="display: display._genre"><b>{_genre_label}:</b> {_genre}</div>

		If #genre is not set, then the entire <div> element will be hidden.
        -->
You have a div 'Jacket', did you modify the sibling stylesheet.CSS to include?
theducks is offline   Reply With Quote
Old 01-31-2026, 04:03 PM   #8
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 995
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Great! I've modified both the template file and the stylesheet with these results.
I'm keeping a copy of the files in the folder.
I'm sharing a zip file in case anyone needs it.

Code:
README.txt
==========

Calibre Book Jacket Customization
---------------------------------

This package contains two modified files:

- template.xhtml
- stylesheet.css

These files control the structure and style of the "Book Jacket" that Calibre inserts into books during conversion.

Installation paths (requires administrator/root privileges):

- Windows:
  C:\Program Files\Calibre2\resources\jacket\
  (on some installations: C:\Program Files\Calibre\resources\jacket\)

- macOS:
  /Applications/calibre.app/Contents/Resources/jacket/

- Linux:
  /usr/lib/calibre/resources/jacket/
  (depending on distribution: /opt/calibre/resources/jacket/)

⚠️ Warning:
- Always back up the original files before replacing them.
- Keep that backup in a safe place (for example, this ZIP).
- A Calibre update may overwrite these files. If that happens, simply copy your customized versions back from the backup.
Attached Thumbnails
Click image for larger version

Name:	2.png
Views:	28
Size:	318.2 KB
ID:	220644  
Attached Files
File Type: zip test.zip (2.7 KB, 14 views)

Last edited by dunhill; 01-31-2026 at 04:29 PM.
dunhill is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting page breaks before headings fabianmoreno01 Kobo Developer's Corner 3 01-23-2022 04:13 PM
Inserting page breaks before headings fabianmoreno01 Editor 10 01-21-2022 02:32 AM
Inserting Page Breaks At Chapters Reader Bill Editor 9 09-20-2019 09:29 AM
Making a picture the beginning of a new page rosshalde Editor 2 10-27-2014 01:35 PM
Kindle inserting page breaks? december Calibre 8 07-15-2010 10:47 AM


All times are GMT -4. The time now is 06:00 AM.


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