我使用todonotes
带有 的软件包ieeeaccess.cls
,并不断收到奇怪的错误。因此,我按照本指南来解决此问题。
这个答案很好,但它留下了一些警告,例如:
Package xcolor Warning: Incompatible color definition on input line 163.
Package xcolor Warning: Incompatible color definition on input line 170.
Package xcolor Warning: Incompatible color definition on input line 178.
Package xcolor Warning: Incompatible color definition on input line 181.
Package xcolor Warning: Incompatible color definition on input line 1.
Package xcolor Warning: Incompatible color definition on input line 208.
我尝试使用silence
来抑制这个警告,但是失败了:
\WarningFilter{xcolor}{Package xcolor Warning: Incompatible color definition on input line}
我的.tex
情况是:
\documentclass{ieeeaccess}
% packages
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\usepackage{verbatim}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{cite}
\usepackage{ulem}
\usepackage{fancyref}
\usepackage{breqn}
\usepackage{url}
\usepackage{footnote}
\usepackage{enumitem}
\usepackage{diagbox}
\usepackage{siunitx}
\usepackage{threeparttable}
\usepackage{makecell}
\usepackage{booktabs}
\usepackage{support-caption}
\usepackage{subcaption}
\usepackage{float}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{pifont}
\usepackage{xspace}
\usepackage{algorithmic}
\usepackage{textcomp}
\usepackage{tabulary}
\usepackage{todonotes}
\usepackage{silence}
\NewSpotColorSpace{PANTONE}
\AddSpotColor{PANTONE} {PANTONE3015C} {PANTONE\SpotSpace 3015\SpotSpace C} {1 0.3 0 0.2}
\SetPageColorSpace{PANTONE}%
\graphicspath{{./img/}}
\begin{document}
\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.}
\doi{10.1109/ACCESS.2017.DOI}
\title{foo}
\author{
\uppercase{foo}\authorrefmark{1}
}
\address[1]{foo}
\tfootnote{foo}
\markboth
{foo}
{foo}
\corresp{foo}
\begin{abstract}
foo
\end{abstract}
\begin{keywords}
foo
\end{keywords}
\titlepgskip=-15pt
\maketitle
\section{Introduction}
\label{sec:introduction}
\PARstart{T}{his} document is a template for \LaTeX.
\EOD
\end{document}
是不是因为我从来没有把它包含xcolor
在自己的文件中.tex
?如何抑制这些警告?