![未定义带有 xcolor 包的命令 \rowcolors](https://linux22.com/image/379218/%E6%9C%AA%E5%AE%9A%E4%B9%89%E5%B8%A6%E6%9C%89%20xcolor%20%E5%8C%85%E7%9A%84%E5%91%BD%E4%BB%A4%20%5Crowcolors%20.png)
我正在尝试制作一个替代颜色的表格。但是,我得到了错误
! Undefined control sequence.
l.12 \rowcolors
{2}{darkcerulean}{blue(ncs)}
我的 MWE 如下:
\documentclass[12pt,twoside,titlepage]{article}
\usepackage[tables]{xcolor}
\usepackage{etoolbox}
\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}
\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}
\definecolor{blue(ncs)}{rgb}{0.0, 0.53, 0.74}
\begin{document}
\begin{center}
\rowcolors{2}{darkcerulean}{blue(ncs)}
\begin{tabular}{cc}
\rowcolor{coolblack}
Table head & Table head\\
Some values & Some values\\
Some values & Some values\\
Some values & Some values\\
Some values & Some values\\
\end{tabular}
\end{center}
\end{document}
有人能帮帮我吗?