````
\documentclass{article}
\usepackage{fancyhdr,lipsum}
\pagestyle{fancy}
\cfoot{\Large\thepage}
%\usepackage{ctex}
\setcounter{tocdepth}{2}%目录深度
\usepackage{tocloft}
%\renewcommand{\cftsecfont}{\normalsize}
%\renewcommand{\cftsubsecfont}{\normalsize}
\begin{document}
\tocloftpagestyle{fancy}
\pagenumbering{Roman}
\tableofcontents
\cfoot{\huge\thepage}
\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
\cfoot{\huge\thepage}
\section{1}
\lipsum[1-9]
\section{2}
\lipsum[1-9]
\section{2}
\lipsum[1-9]
\section{2}
\lipsum[1-9]
\end{document}
````
’‘’
呐,解决了!
If the tocloft package is loaded, the page style of pages in the ToC, LoT, and LoF is governed by the package's \tocloftpagestyle macro. Tocloft's default page style is plain. To change the page style of these pages to fancy, issue the command
作者追问:2021-03-01 19:48
请问具体改成啥样呢?我还是不太懂欸?
作者追问:2021-03-01 19:48
哦哦,明白了!
回答: 2021-03-01 19:48
啊? 就那几行代码,你都懒得对比吗?
一周热门 更多>