How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error
! Package titlesec Error: Not allowed in `easy'
settings.
documentclass-writingtitlesec
How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error
! Package titlesec Error: Not allowed in `easy'
settings.
Best Answer
The error message indicates that you were trying to use the "easy setup" with
\titleformat*
in a wrong way. For substantial formatting modifications, use the non-starred variant\titleformat
and for changing the spacing, use\titlespacing*
. Below are the default settings, which you can change according to your needs:For example, to center the title, reduce the space before from
50pt
to30pt
and the space after from40pt
to20pt
, you can do: