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 09-09-2024, 06:00 PM   #1
nikclucas
Junior Member
nikclucas began at the beginning.
 
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).
nikclucas is offline   Reply With Quote
Old 09-09-2024, 10:38 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: 44,565
Karma: 24495948
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.
kovidgoyal is offline   Reply With Quote
Advert
Reply

Tags
custom, footers, headers, javascript, templates


Forum Jump

Similar Threads
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 04:30 AM
Forma Turn one page, Pages in chapter increases 1, Pages in book increases 2 codychan Kobo Reader 15 03-14-2021 09:51 PM
PDF to ePUB how to remove chapter header from pages when viewing ePUB in Flow mode codeowl Conversion 1 02-08-2020 01:49 AM
How to add a page break before each chapter barryem Editor 13 10-03-2016 11:11 PM
Is there a way to show chapter name as header on every page? Dragan Tanevski ePub 10 10-28-2015 04:27 PM


All times are GMT -4. The time now is 03:43 AM.


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