编译此代码片段后,我收到了这个奇怪的警告:
\documentclass[a4paper, 12pt]{report}
\usepackage{indentfirst}
\setlength{\parindent}{2.30em}
\usepackage[utf8]{inputenc}
\usepackage{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
% Document dimensions and margins
\usepackage[top=1.8in, bottom=1.25in, left=1.75in, right=1.25in, headheight=1.25in]{geometry}
\usepackage{sectsty} % section font size
\sectionfont{\normalsize}
\subsectionfont{\normalsize}
\subsubsectionfont{\normalsize}
\paragraphfont{\normalsize}
\subparagraphfont{\normalsize}
\usepackage{etoolbox} % remove spaces before and after paragraph
\usepackage{setspace} % control linespacing
\setstretch{1.5}
% Pagination
\usepackage{fancyhdr}
\pagestyle{fancyplain} % <- use fancyplain instead fancy
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
\pagenumbering{roman}
\addtocounter{page}{1}
\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents
\newpage
\end{document}
但是,编译此代码片段不会产生错误:
\documentclass[a4paper,12pt]{report}
\usepackage{indentfirst}
\setlength{\parindent}{2.30em}
\usepackage[utf8]{inputenc}
\usepackage[top=1.8in, bottom=1.25in, left=1.75in, right=1.25in, headheight=1.25in]{geometry}
\usepackage{sectsty} % section font size
\sectionfont{\normalsize}
\subsectionfont{\normalsize}
\subsubsectionfont{\normalsize}
\paragraphfont{\normalsize}
\subparagraphfont{\normalsize}
\usepackage{etoolbox} % remove spaces before and after paragraph
\usepackage{setspace} % control linespacing
\setstretch{1.5}
\usepackage[style=apa, backend=biber]{biblatex} % for APA 7
\addbibresource{References.bib}
%Pagination
\usepackage{fancyhdr}
\pagestyle{fancyplain}% <- use fancyplain instead fancy
\fancyhf{}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\chapterfont{\normalsize \centering \MakeUppercase}
\begin{document}
\pagenumbering{roman}
\addtocounter{page}{1}
\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents \newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures \newpage
\clearpage
\pagenumbering{arabic}
\end{document}
警告结果如下图所示:
这是怎么回事?老实说,我不知道触发警告的主要区别是什么。由于论文要求,我宁愿选择第二张图片。任何帮助我都感激不尽。谢谢!