![更改项目的颜色](https://linux22.com/image/417397/%E6%9B%B4%E6%94%B9%E9%A1%B9%E7%9B%AE%E7%9A%84%E9%A2%9C%E8%89%B2.png)
有没有办法只改变列表中一个项目的颜色?例如:
\usepackage{xcolor}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\alph*)]
\item Answer a
\item Answer b
\item Answer c
\item Answer d
\end{enumerate}
\end{document}
我只想改变第三项的颜色以表明它是正确答案。我尝试引入 [label=\color{red}\alph*)],但它会改变所有项。谢谢
答案1
\documentclass{article}
\usepackage{xcolor}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\alph*)]
\item Answer a
\item Answer b
{\color{red}\item Answer c}
\item Answer d
\end{enumerate}
\begin{enumerate}
\item First item
\item Second item
\color{red}
\item \normalcolor Third item
\item Last item
\end{enumerate}
\end{document}