
Ich kann die Farben der und Köpfe ändern chapter
, aber section
auf subsection
diese Weise ändert sich die Farbe der subsection*
Köpfe nicht. Hier ist ein Beispiel:
\documentclass[a4paper,12pt,twoside]{book}
\usepackage{xcolor}
\usepackage{sectsty}
\chapterfont{\color{red}}
\sectionfont{\color{red}}
\subsectionfont{\color{red}}
\begin{document}
\chapter{My chapter}
\section{My section}
We will prove ..
\subsection{My subsection}
The sequence is a list..
\subsubsection*{Star Subsection}
We can ...
\end{document}
Die Ausgabe ist
Ich danke Ihnen für Ihre Hilfe.
Antwort1
Trotz seines Namens ist Ihr "Star Subsection" kein Unterabschnitt, sondern ein UnterabschnittunterAbschnitt. Um die Farbe zu ändern, benötigen Sie \subsubsectionfont{\color{red}}
(oder verwenden Sie einfach \allsectionsfont{\color{red}}
, um alle Überschriften auf einmal zu ändern):
\documentclass[a4paper,12pt,twoside]{book}
\usepackage{xcolor}
\usepackage{sectsty}
\chapterfont{\color{red}}
\sectionfont{\color{red}}
\subsectionfont{\color{red}}
\subsubsectionfont{\color{red}}
%\allsectionsfont{\color{red}}
\begin{document}
\chapter{My chapter}
\section{My section}
We will prove ..
\subsection{My subsection}
The sequence is a list..
\subsubsection*{Star Subsection}
We can ...
\end{document}