
Я могу изменить цвета головок chapter
, section
и subsection
, но этот способ не меняет цвет subsection*
головок. Вот пример:
\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}
Выходной сигнал:
Спасибо за помощь.
решение1
Несмотря на свое название, ваш «Подраздел Звезд» — это не подраздел, а подраздел.субраздел. Итак, чтобы изменить цвет, вам понадобится \subsubsectionfont{\color{red}}
(или просто используйте \allsectionsfont{\color{red}}
для изменения всех заголовков сразу):
\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}