|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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). |
|
|
|
|
|
#2 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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. |
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#4 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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>
|
|
|
|
|
|
#5 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Just to be clear. You ARE using the method I outlined above for those edits?
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 995
Karma: 1084520
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
|
If you find the template.xhtml file in resources\jacket and modify it like this
|
|
|
|
|
|
#7 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
-->
|
|
|
|
|
|
#8 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. Last edited by dunhill; 01-31-2026 at 04:29 PM. |
|
|
|
![]() |
|
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 |