更改與附錄包一起出現的「附錄」頁面的字體顏色

更改與附錄包一起出現的「附錄」頁面的字體顏色

我有以下最少的程式碼,其中有一些章節和一些附錄。

\documentclass[oneside]{book}
\usepackage[toc, page, title]{appendix}

\begin{document}

\tableofcontents 

\include{chapter1}
\include{chapter2}

\begin{appendices}
\include{appendix1}
\include{appendix2}
\end{appendices}

\end{document}

這將在附錄開始之前插入一個顯示「附錄」的頁面,如下所示:

在此輸入影像描述

我使用了不同的字體顏色對於我的章節標題,是否可以更改此頁面的字體顏色,以便它以自訂顏色顯示“附錄”(以便它與我的章節標題相符)?

在此輸入影像描述

答案1

我解決了這個問題,但是可能有更好的解決方案。

基於:

自訂附錄環境以列印“出版物”而不是“附錄”

在序言中添加以下內容將會起作用:

\renewcommand\appendixpagename{\color{DESIRED_COLOUR}{Appendices}}

例如,要將顏色變更為藍色:

\renewcommand\appendixpagename{\color{blue}{Appendices}}

相關內容