[Tex/LaTex] LaTeX, Can’t color text

color

To be honest i don't know what the problem is, i just can't seem to get any of my text colored.

I made an example file to show you some demonstation of the problem:

     \documentclass[a4paper,11pt,dvips]{article}
     \usepackage[T1]{fontenc}
     \usepackage[utf8]{inputenc}
     \usepackage[british]{babel}
     \usepackage{color}
     \usepackage{xcolor}

     \begin{document}

     \emph{some black text, {\color{red}followed 
      by a red fragment}, going black again.}
     \begin{itemize}
      \color{blue}
      \item Firts item
      \item Second item
       \end{itemize}

       \noindent
       {\color{red}}
       \textcolor{red}{easily}
       \end{document}`

This gives the following output:

            some black text, followed by a red fragment, going black again. 
            Firts item 
            Second item
            easily

As you can see, nothing has changed. Im running it with Quick Build in TexMaker(Have no ide if that makes a difference). And im not getting any errors.

Any help or advice would be much appreciated.

Best Answer

It's dvipsnames

\documentclass[a4paper,11pt,dvipsnames]{article}
     \usepackage[T1]{fontenc}
     \usepackage[utf8]{inputenc}
     \usepackage[british]{babel}
     \usepackage{color}
     \usepackage{xcolor}

     \begin{document}

     \emph{some black text, {\color{red}followed
      by a red fragment}, going black again.}
     \begin{itemize}
      \color{blue}
      \item Firts item
      \item Second item
       \end{itemize}

       \noindent
       {\color{red}}
       \textcolor{red}{easily}
       \end{document}

enter image description here

Related Question