Feature request: optional change of page number style after front/main matter
KOMA-Script is a bundle of versatile LaTeX classes and packages
Brought to you by:
kohm
I sometimes need the front matter be numbered with uppercase Roman numbers instead of lowercase Roman numbers. Usually I use xpatch to patch \frontmatter or use \AddToHook to add a \pagenumbering{Roman}. But it would IMHO be more comfortable to have an optional argument with the default roman and replace the \pagenumbering{roman} in the definition of \frontmatter by \pagenumbering{#1}.
And from TeX.SX it seems, sometimes users want a front/main matter without changing the numbering style. So, e.g., star version, which doe not use \pagenumbering{…} would also be useful. However someone could use \backmatter instead of \frontmatter but still would need a \mainmatter without \pagenumbering{arabic}.
Implemented in [r4229].
Related
Commit: [r4229]
Changed again in [r4231] to change the order of the
\pagenumberingcommands and therefore make egreg's patch suggestion still works with next KOMA-Script release.BTW: I would prefer your suggestion without redefining or patching
\frontmatterand\mainmatter. Patches or redefinition always depend somehow on internals. So solutions without are IMHO mostly better.Related
Commit: [r4231]
Last edit: Markus Kohm 2025-10-28
But perhaps I should mention explicitly at this point that I don't actually want to add any more new features to KOMA-Script. At least, not any that I have to write additional guidance for, that I myself have absolutely no need for, that I consider to be of little use, and whose implementation does not represent any personal gain for me.
In the end, this new feature took me more time than I had initially anticipated. This means that my plans to continue working on
tocbasichave been put on hold again for today. I really should try to be less distracted...