我该如何修复这个警告?

我该如何修复这个警告?

为什么我会收到这个警告?

软件包 unnumberedtotoc 警告:
添加一些 KOMA 脚本类也提供的功能。
考虑切换,因为 KOMA 具有更多功能。
可在以下位置找到: https://github.com/johannesbottcher/unnumberedtotoc

\documentclass[11pt]{article}
\usepackage[titletoc]{appendix}
\usepackage[nottoc]{tocbibind}
\usepackage{geometry}
\usepackage{natbib}                 %
\usepackage{bibentry}                   %
\setlength{\bibsep}{0pt plus 0.3ex}     % No Space
\usepackage{etoolbox}                   %
\makeatletter                           %
\patchcmd{\l@section}{1.5em}{2em}{}{}   %
\makeatother                            %
\usepackage{parskip}                    %
\usepackage{titlepic}                   %
\usepackage[english]{babel}             %
\usepackage{amssymb}                    %
\setlength{\parindent}{0in}             %
\usepackage{mathtools}                  %
\usepackage{booktabs}                   %           
\usepackage{setspace}                   %
\usepackage{graphicx}                   %
\usepackage{epstopdf}                   %
\usepackage{amsmath}                    %
\usepackage{amsfonts}                   %
\usepackage{amsthm}                     %
\usepackage{marginnote}                 %
\usepackage{datetime}                   %
\usepackage{enumitem}                   %
\usepackage{subfigure}                  %
\usepackage{rotating}                   %                   
\usepackage{float}                      %
\usepackage[para,symbol*]{footmisc}     %
\usdate                                 %   
% Save original definition of \marginpar                                                                        %
%\let\oldmarginpar\marginpar                                                                                        %
\usepackage{unnumberedtotoc}
\usepackage{multicol}

% Save original definition of \marginpar                                                                        %
\let\oldmarginpar\marginpar                                                                                     %
                                                                                                                %
% Workaround for todonotes problem with natbib (To Do list title comes out wrong)                               %
\makeatletter\let\chapter\@undefined\makeatother % Undefine \chapter for todonotes                              %


% Command to start a new page, starting on odd-numbered page if twoside option                                  %
% is selected above                                                                                             %
%\newcommand{\clearRHS}{\clearpage\thispagestyle{empty}\cleardoublepage\thispagestyle{plain}}                   %


% Number paragraphs and subparagraphs and include them in TOC   
\setcounter{tocdepth}{4}    

\usepackage{indentfirst} % Indent first sentence of a new section
\usepackage{endnotes}    % Use endnotes instead of footnotes
%% ============================================================================                                 
\usepackage{D:/texlive/2016/texmf-dist/tex/latex/jf/jf}                                                                             
%% ============================================================================                                                                                                         
\usepackage[subfigure]{tocloft}



\usepackage{fancyhdr}\makeatletter \def\@fancyvbox#1#2{\vbox{#2}} \makeatother


\begin{document}





\pagenumbering{gobble}% Remove page numbers (and reset to 1)


\setlist{noitemsep}  % Reduce space between list items (itemize, enumerate, etc.)
\onehalfspacing      % Use 1.5 spacing
% Use endnotes instead of footnotes - redefine \footnote command
\renewcommand{\footnote}{\endnote}  % Endnotes instead of footnotes

\author{blabla\thanks{\rm [email protected] }}



%\thispagestyle{empty}
%\fancyfoot{}
%\fancyhead{}
\title{\LARGE \textbf{American}\footnote{Acknowledgements:.}}  %%MAX LIMIT FOR ACKNOWLEDGEMENTS


\date{}              % No date for final submission



% Create title page with no page number
\maketitle
\thispagestyle{fancy}


\smallskip

\centerline{\bf ABSTRACT}



\clearpage
\thispagestyle{plain}


\tableofcontents




\newpage

答案1

您收到此警告是因为该包以非常粗糙的方式实现了一些 KOMA 功能。如果您想要拥有 KOMA 脚本的功能,请考虑切换到 KOMA 类。

等一下,这基本上就是警告中已经写的内容。我的错。


如何摆脱它?

Github 存储库的 Readme 仅指出了该包的两个选项:

silent
抑制日志文件和终端输出中打印的警告缩进
indentunnumbered
目录中未编号的条目

用于silent抑制警告。

相关内容