Deprecated @focused and @preexpanded levels

12 views
Skip to first unread message

Oscar Levin

unread,
Aug 24, 2025, 8:00:00 PM (13 days ago) Aug 24
to PreTeXt development
I spent an embarrassing amount of time just now trying to get the greeley theme to collapse the table of contents before vaguely remembering that the @focused and @preexpanded levels don't do anything on any theme (except maybe custom) now that the legacy themes are gone.

Is this the plan moving forward, or is there some consideration for reinstating them.  If the former, then the documentation should be adjusted.  I'd like to see the option return, although I don't know what it would take to do so.  For "auto-hide" TOCs it doesn't matter, but for those that display the TOC by default, I think there might be a good reason to allow it.

Or I should just switch the greeley theme to always use focused mode.  Or add an "evans" theme (since Evans is a suburb of Greeley).

Andrew Scholer

unread,
Aug 25, 2025, 12:39:46 PM (13 days ago) Aug 25
to PreTeXt development
Long ago we talked about making the focused mode something more controlled by the theme. But I think you are right, the best value for those options likely depends on both the theme and the length/structure of the document.

This PR makes gives a pub file value precedence over the value that is associated with a particular theme (those values are still fallbacks):
https://github.com/PreTeXtBook/pretext/pull/2680

Oscar Levin

unread,
Aug 25, 2025, 11:08:38 PM (12 days ago) Aug 25
to PreTeXt development
Thanks Andrew.  I really like having this flexibility back, even though I had originally said it wasn't needed.

It's now available in 2.29.0.

Reply all
Reply to author
Forward
0 new messages