我收到以下错误:
! Use of \HyColor@WithModel doesn't match its definition.
\@ifnextchar ... \reserved@d =#1\def \reserved@a {
#2}\def \reserved@b {#3}\f...
l.8 }
尝试使用以下文件运行时latexmk -xelatex
:
\documentclass[a4paper]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage[colorlinks]{hyperref}
\hypersetup{
citecolor = \color{MidnightBlue}
}
\title{The Title}
\author{John Doe}
\begin{document}
\maketitle
The quick brown fox jumps over the lazy dog.
\end{document}
这里的罪魁祸首似乎是\color
。当我给出一个标准颜色(例如red
)时hypersetup
,一切都正常。