![目录页码未以正确的颜色显示](https://linux22.com/image/435903/%E7%9B%AE%E5%BD%95%E9%A1%B5%E7%A0%81%E6%9C%AA%E4%BB%A5%E6%AD%A3%E7%A1%AE%E7%9A%84%E9%A2%9C%E8%89%B2%E6%98%BE%E7%A4%BA.png)
答案1
如果整个文档的文本应该是白色,请使用\color{white}
在序言:
\documentclass{report}
\usepackage{blindtext}% only for dummy text
\usepackage{xcolor}
\pagecolor{blue!20!black}
\color{white}% <- change the color in the preamble
\begin{document}
\tableofcontents
\blinddocument
\end{document}
如果要更改文档中的颜色,请加载包并在旁边normalcolor
添加使用:\resetnormalcolor
\color{white}
\documentclass{report}
\usepackage{blindtext}% only for dummy text
\usepackage{xcolor}
\pagecolor{blue!20!black}
\usepackage{normalcolor}
\begin{document}
\color{white}\resetnormalcolor
\tableofcontents
\clearpage
\color{green}\resetnormalcolor
\blinddocument
\end{document}
如您所见,页脚中的页码颜色也已改变。