為什麼我會收到此警告?
軟體包 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-script 的功能,請考慮切換到 KOMA 類別。
等等,這基本上就是警告中已經寫的內容。我的錯。
如何擺脫它?
Github 儲存庫的自述文件只說明了該套件的兩個選項:
silent
禁止在日誌檔案和終端輸出中列印警告 縮排
indentunnumbered
目錄中未編號的條目
用於silent
抑制警告。