![ieeeaccess:使用 TikZ 包时出现“包 xcolor 警告:颜色定义不兼容”](https://linux22.com/image/458551/ieeeaccess%EF%BC%9A%E4%BD%BF%E7%94%A8%20TikZ%20%E5%8C%85%E6%97%B6%E5%87%BA%E7%8E%B0%E2%80%9C%E5%8C%85%20xcolor%20%E8%AD%A6%E5%91%8A%EF%BC%9A%E9%A2%9C%E8%89%B2%E5%AE%9A%E4%B9%89%E4%B8%8D%E5%85%BC%E5%AE%B9%E2%80%9D.png)
我正在尝试为 IEEE Open Access 准备一篇论文\documentclass{ieeeccess}
,使用其模板(https://ieeeaccess.ieee.org/wp-content/uploads/2022/01/LaTeX.zip)。
当我添加使用tikz
包时,我收到许多Package xcolor Warning: Incompatible color definition
警告消息。是否可以隐藏此警告消息?
简化代码示例:
\documentclass{ieeeaccess}
%%%%%%%
\usepackage{tikz}
\NewSpotColorSpace{PANTONE}
\AddSpotColor{PANTONE} {PANTONE3015C} {PANTONE\SpotSpace 3015\SpotSpace C} {1 0.3 0 0.2}
\SetPageColorSpace{PANTONE}%
%%%%%%%%%
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\begin{document}
\title{Preparation of Papers for IEEE ACCESS}
\author{\uppercase{First A. Author}\authorrefmark{1}, \IEEEmembership{Fellow, IEEE},
\uppercase{Second B. Author\authorrefmark{2}, and Third C. Author,
Jr}.\authorrefmark{3},
\IEEEmembership{Member, IEEE}}
\begin{abstract}
These instructions give you guidelines for preparing papers for ...
\end{abstract}
\begin{keywords}
keywords
\end{keywords}
\titlepgskip=-15pt
\section{Introduction}
\label{sec:introduction}
\PARstart{T}{his} document is a template for \LaTeX. If you are
reading a paper or PDF version of this document, please download the
\EOD
\end{document}
警告信息:
Package xcolor Warning: Incompatible color definition on input line 19.
(/usr/local/texlive/2022/texmf-dist/tex/latex/psnfss/t1phv.fd)
LaTeX Font Warning: Font shape `T1/phv/n/n' undefined
`enter code here`(Font) using `T1/phv/m/n' instead on input line 19.
Package xcolor Warning: Incompatible color definition on input line 23.
Package xcolor Warning: Incompatible color definition on input line 29.
答案1
我已经找到了解决这个问题的直接方法。导航到\documentclass{ieeeccess}
并替换\Requirepackage{color}
为\Requirepackage{xcolor}
。这就是您需要做的全部工作。
答案2
我发现了一个相当简单的解决方案。
- 打开
ieeeaccess.cls
- 查找每个实例
\def\year
- 用。。。来代替
\def\Year
- 保存并重命名
.cls
文件以避免与原始文件混淆ieeeaccess.cls
(请参阅下面 samcarter_is_at_topanswers.xyz 的评论)
并做了。
来源:https://9to5science.com/tikz-package-causing-error-in-ieee-access-template