![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Sep 2024
Device: Calibre
|
Add header to only chapter pages and not every page of the book
Looking at https://manual.calibre-ebook.com/con...rs-and-footers it seems to imply that headers or footers will be applied to every single page. But there are definitely pages -- e.g. such as the first chapter page where it's very redundant. Is it possilbe to selectively apply headers or footer templates to only particular section types? Perhaps using the javascript angle (I haven't been able to find a lot of info about how much control the javascript portion gives you).
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,295
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's full javascript so you can do pretty much anything, the only limitation is whatever html your output will be rendered only in the header footer areas and you have access only to the variables defined in the docs with regard to metadata about the document.
|
![]() |
![]() |
![]() |
Tags |
custom, footers, headers, javascript, templates |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make page 1 the last page number for pages left in a chapter #7549 | JSWolf | KOReader | 8 | 05-29-2021 03:30 AM |
Forma Turn one page, Pages in chapter increases 1, Pages in book increases 2 | codychan | Kobo Reader | 15 | 03-14-2021 08:51 PM |
PDF to ePUB how to remove chapter header from pages when viewing ePUB in Flow mode | codeowl | Conversion | 1 | 02-08-2020 12:49 AM |
How to add a page break before each chapter | barryem | Editor | 13 | 10-03-2016 10:11 PM |
Is there a way to show chapter name as header on every page? | Dragan Tanevski | ePub | 10 | 10-28-2015 03:27 PM |