Scribus Forums

Development => Features => Topic started by: a.l.e on January 11, 2024, 09:51:18 AM

Title: running headers with chapter titles
Post by: a.l.e on January 11, 2024, 09:51:18 AM
lately, several people have asked for having the chapter title in the running header.

i fear that scribus won't have the feature until references get fixed... which can take a long time.

yesterday, i've finally created a script that can help putting the current chapter title into the the head / header:

https://github.com/aoloe/scribus-script-repository/tree/master/headers_with_chapter_titles

i think that for a first implementation it works ok.

the basic idea is:

- the user puts on the master page a text frame that won't be printed.
- the script duplicates that frame to the pages that use the specific master and...
- fills it with the latest chapter title it has seen.

you're welcome to test it and give feedback on

- what it needs to be implemented to make it useful to you?
- any bug?

i would also be glad if somebody could provide test documents...
Title: Re: running headers with chapter titles
Post by: Lynn on January 16, 2026, 01:28:32 AM
It's been a hot minute since you posted this, but I wanted to commit a bit of thread necromancy to say THANK YOU for this script.

I'm the local Scribus "expert" in my hand bookbinding club and for years I'd been telling people that making per-chapter headers (or per-work headers listing authors for anthologies) wasn't worth the effort in Scribus. This script makes that no longer true!

I enjoy building little run-time dialogue menus to set the variables for scripts like this, since usually the people I'm helping aren't comfortable opening python scripts and changing variables by hand. I built off the bones of this to make a (admittedly clunkier) variant that does everything I could think of for book headers:
(In case you're curious, the script I edited is available here. https://github.com/notwhelmedyet/ScribusTypesetting/blob/main/runningHeadersScribus.py (https://github.com/notwhelmedyet/ScribusTypesetting/blob/main/runningHeadersScribus.py))

But yes, thank you! Your scripts have made the process of Scribus typesetting books much less tedious. :)