[Tex/LaTex] Different colours for the bullets in itemize environment

enumitemitemizelists

In the following list, the colour of the bullet will be fixed:

\begin{itemize}
\item Good point 1
\item Good point 2
\item Poor statement 1 
\item Poor Statement 2
\end{itemize}

Is there anyway to modify the above environment to have different colours for the bullets depending on the entry? Something like

Green Bullet Good point 1
Green Bullet Good point 2
Red Bullet Poor statement 1
Red Bullet Poor statement 2

Best Answer

You can do this with the enumitem package quite easily:

\documentclass{article}
\usepackage{enumitem}
\usepackage{xcolor}
\newif\ifgooditem
\gooditemtrue
\newcommand\gooditem{\gooditemtrue\item}
\newcommand\baditem{\gooditemfalse\item}
\begin{document}
\begin{itemize}[label={\ifgooditem\color{green}\else\color{red}\fi\textbullet}]
\gooditem A good item
\baditem A bad item
\end{itemize}
\end{document}

enter image description here