Scribus Forums

Scribus => General Discussion => Topic started by: sersha on December 17, 2025, 10:08:56 PM

Title: TOC functionality in 1.7.x
Post by: sersha on December 17, 2025, 10:08:56 PM
Finally started to test the version 1.7.1 and love it so far! Immediately tried to create a TOC with styles for a test file, and it worked wonderfully.
My only wish would be to have a better flexibility in page numbers there. As is now, they follow the style of entry, which is fine if the whole TOC is made in a single style.
But, if I want to preserve styles for different levels in different font sizes, it becomes not so nice, since the numbers will also be smaller, bigger, bold or whatever, creating an imbalance.
I hope it is not too difficult to give an option to choose a separate style just for page numbers in TOC? It would be such a nice addition.
Thank you for wonderful work! I enjoy working with Scribus since before version 1.3xx. Best regards, S.
Title: Re: TOC functionality in 1.7.x
Post by: a.l.e on December 19, 2025, 05:44:41 PM
It should not be hard to let the user define character styles for the text, the tab, and the page number.

Would you mind to check if there is a ticket for it in https://bugs.scribus.net and if not create one?

It might also be rather easy to create a Python script that applies those character styles on demand.

p.s.: Oh the "nice" memories of 1.3.3.14...
Title: Re: TOC functionality in 1.7.x
Post by: theodorene37 on January 26, 2026, 04:39:58 AM
Separate character styles for TOC text and page numbers would make a lot of sense and avoid visual imbalance. Checking or opening a ticket sounds like the right next step if this isn't tracked yet.
Title: Re: TOC functionality in 1.7.x
Post by: Lynn on January 26, 2026, 11:21:56 PM
I haven't tested it in 1.7x, but I did write a script for applying character styles to elements of a TOC this weekend for my personal use. Might be helpful if anyone else is running into the issue of wanting differently style titles/page numbers in the interim - https://github.com/notwhelmedyet/ScribusTypesetting/blob/main/NicheScripts/styleTOC.py (https://github.com/notwhelmedyet/ScribusTypesetting/blob/main/NicheScripts/styleTOC.py).