I am writing my thesis using a template provided by the university. It requires using the report class. To format the headings in the front matter, it uses the titlesec
package and redefine the format (\titleformat
, \titlespacing
). However, this also changes the format of chapter headings in the main matter, which I don't like. I have tried using \newenvironment
to define an environment preliminary
to wrap the front matter and to only redefine the headings' format locally. However it did not work.
My questions are: is it possible to change the headings' format locally? if not, how to save the default format and restore it after the front matter?
I guess I can always redefine the format after the front matter, but I want to keep the default.
{}
or\begingroup \endgroup
, but I'm not sure if that can work for you.