The second argument of the \titleformat*{\<name>}{<code>}
is stored in a macro called \ttlf@<name>
which (default) definition can be printed to the command line with \show\ttlf@<name>
, after a \makeatletter
of course.
\makeatletter
\show\ttlf@section
\ttlf@section:
macro:->\ttlh@hang {\normalfont \Large \bfseries }{\@seccntformat {section}}{\z
@ }{\ttl@passexplicit }{}.
\show\ttlf@subsection
\ttlf@subsection:
macro:->\ttlh@hang {\normalfont \large \bfseries }{\@seccntformat {subsection}}
{\z@ }{\ttl@passexplicit }{}.
\show\ttlf@subsubsection
\ttlf@subsubsection:
macro:->\ttlh@hang {\normalfont \normalsize \bfseries }{\@seccntformat {subsubs
ection}}{\z@ }{\ttl@passexplicit }{}.
Therefore the correct settings for the requested title formats are:
\titleformat*{\section}{\normalfont\Large\bfseries\color{red}}
\titleformat*{\subsection}{\normalfont\large\bfseries\color{red}}
\titleformat*{\subsubsection}{\normalfont\normalsize\bfseries\color{red}}
Just for completeness here also the settings for \paragraph
and \subparagraph
:
\titleformat*{\paragraph}{\normalfont\normalsize\bfseries\color{red}}
\titleformat*{\subparagraph}{\normalfont\normalsize\bfseries\color{red}}