
、および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}