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...
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:
- Selecting a style of text within the document to copy into the headers, so you can pick if you want to move chapter titles, chapter number, work title, author name etc.
- An option to delete previously created headers, which I used a great deal during debugging
- Applying headers to either left or right pages, so you could put author names on the left and work titles on the right, etc.
- Applying a style chosen at runtime to the headers, so you could use different styles for left and right headers.
- Appending the new header text to text coming from the master page. I thought this was most plausible if someone wanted to include an ornament or page number nestled against the header contents. I've definitely seen book headers with the format "# | Chapter Title" before.
(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. :)