在 a0poster 中逐项列出块颜色

在 a0poster 中逐项列出块颜色

我正在课堂上制作一张 a0 尺寸的海报a0poster。是否可以更改 itemize 块的颜色?我可以逐行更改文本颜色,但不能更改项目符号:

\documentclass[a0,portrait]{a0poster}
\usepackage{color}
\begin{document}
%what I can do
\begin{itemize}
  \item \textcolor{green}{pros is green color}
\end{itemize}
\begin{itemize}
  \item \textcolor{red}{cons in rec dolor}
\end{itemize}

%what I want
\color{green}{
\begin{itemize}
  \item whole block with bullets will be green
  \item including all the itemes inside this block
\end{itemize}}
\end{document}

答案1

您可以使用以下方式定义专门列表enumitem

\documentclass[a0,portrait]{a0poster}

\usepackage[x11names]{xcolor}
\usepackage{enumitem}
\newlist{prositemize}{itemize}{1}
\setlist[prositemize]{label=\textbullet, before=\color{DarkSeaGreen3}\sffamily}
\newlist{consitemize}{itemize}{1}
\setlist[consitemize]{label=\textbullet, before=\color{IndianRed2}\sffamily}

\begin{document}

\begin{prositemize}
  \item pros is green color
\end{prositemize}
\begin{consitemize}
  \item icons in red color
\end{consitemize}

\end{document} 

在此处输入图片描述

相关内容