View Issue Details

IDProjectCategoryView StatusLast Update
0017078ScribusMaster Pagespublic2023-12-18 14:06
Reporterehbowen Assigned To 
Status newResolutionopen 
PlatformLinuxOSUbuntu StudioOS Version22.04
Product Version1.5.8 
Summary0017078: Feature Request: Automatic Page Headers from TOC Attribute
DescriptionRequesting a new optional master page element which will allow the dynamic insertion of the active (most recently defined) TOC element on specified master pages.
Steps To ReproduceN/A
Additional InformationI use Scribus to format novel-length manuscripts for publication. One commonly seen element is chapter headings at the top of every page, or every other page, for the current chapter. Scribus already has a Table of Contents generator which works off of a tagged attribute for each chapter. How about a master page element, similar to the current one for inserting page numbers, which inserts the text of the active TOC attribute in a defined header box on each master page?

There should be a way of suppressing this for image pages and pages with non-text content (tables, etc), but it would be a welcome addition for book formatting and similar.
Tagsautoframes, text box, TOC



2023-12-17 20:14

manager   ~0050614

i have created a python script that is pretty good at creating a TOC based on styles:

i'd like to see it tested a bit more, and when the features are stable i plan to convert to c++ code for scribus.
ideally, it would replace the existing TOC engine (which as far as i can tell is not really usable and has almost never been used in the real world...)

but i'm not sure that the TOC code can be useful for putting the current chapter title in the header.

the biggest difference is that the TOC is rebuilt on demand and does not have to be very efficient.
i think that one would expect the header to automatically update when a new title is defined or the existing title is modified (without the need to run an action).
then, the code around this needs to be really efficient (since parts of it is run on each key stroke)
at least, this is how it works in libreoffice.


2023-12-18 14:06

reporter   ~0050621

Well, this is my first real Scribus project and I did find the existing TOC generator usable for my purposes, albeit with a few hiccups. Since the tags are tied to frames and not to their contents, I'll need to go through and re-tag the frames once I get my manuscript document into its final form (right now I'm still experimenting with alternate layouts). But right now if I want chapter-specific page headers (and they're strongly recommended by those who promulgate the standards for Large Print books), I'm going to have to go through and manually paste text boxes onto some 500 pages. It would be so much better if there was a subroutine, or a script, which could look at the text frame attributes and say, "Hmm, there's a tag for 'Executive Decisions'. I'll go through and automatically insert a text box with 'Executive Decisions' in the area designated on the corresponding master page for each page until I run into the next tag."

While it would be fantastic if this could be done dynamically as you edit, even a batch process run at the end of formatting would be better than copy-and-pasting 500 text boxes! (Actually 250, since I only have them on the even-numbered pages; odd-numbered pages have the book title which is easily set on the master page.) As far as my closing sentence about suppressing them, on rethinking that's easily done by having two styles of master page, one with the automatic header and one without. Apply as required.

Issue History

Date Modified Username Field Change
2023-12-17 11:59 ehbowen New Issue
2023-12-17 11:59 ehbowen Tag Attached: autoframes
2023-12-17 11:59 ehbowen Tag Attached: text box
2023-12-17 11:59 ehbowen Tag Attached: TOC
2023-12-17 20:14 ale Note Added: 0050614
2023-12-18 14:06 ehbowen Note Added: 0050621