I have a problem with combining titlesec
and etoc
, are they compatible?
I want to use formating from titlesec
and then after part title, on the same page, I want to add local table of contents. However my result for now is an empty Content
.
I have the following formating from titlesec
:
\titleformat{\part}[frame]
{\normalfont\color{gray}}
{\filright
\enspace \large PART \thepart\enspace}
{20pt}
{\Huge\bfseries\filcenter\color{black}}
[{\localtableofcontents*
}]
It works when I put manualy \localtableofcontents*
after \part{...}
command. However then \localtableofcontents*
is on the next page, I want it on the same page just after part title. Thanks in advance!