I am trying to run the following code:

\title{Simple Presentation}
\author[D. Flipo]{Daniel Flipo}
\institute{U.S.T.L. \& GUTenberg}
\section{An Example}
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\item walk the dog\dots \pause
\item read a book\pause
\item confuse a cat\pause
and many other things

but I am getting the following error:

xcolor.sty not found

I have also tried


in the preamble of the document with and without options like dvips and svgnames but I cannot get rid of the error

xcolor.sty not found

I run the code by pressing 'PDFLaTeX' on LED and am using MiKTeX 2.9 distribution.

  • Welcome! I’d recommend to enable on-the-fly installation in the MiKTeX settings. If you don’t want to do that, you could also go into the package manager and install the package from there.
    – doncherry
    May 17 '13 at 3:41
  • 2
    See How do I update my TeX distribution?
    – Werner
    May 17 '13 at 3:45
  • @doncherry, I have on-the-fly installation already enabled. I successfully updated tex distribution with and without admin. I was not able to install installable packages though via package manger. It shows the following error after after downloading the packages: MiKTeX Problem Report Message: The operation could not be completed because the following file failed verification: C:\Users\ASHISH~1\AppData\Local\Temp\mikA558.tmp Data: Source: Libraries\MiKTeX\PackageManager\PackageInstaller.cpp Line: 3285 MiKTeX: 2.9
    – user30850
    May 18 '13 at 17:24
  • @user30850 Hmm .. I sort of guessing here, but since it’s a temporary file, I’d delete that file and try again. And make sure you’re using a good, up-do-date MiKTeX mirror server.
    – doncherry
    May 19 '13 at 3:31

In MikTeX tree this package may be located here: \MiKTeX 2.9\tex\latex\xcolor\xcolor.sty. If not, please download xcolor.sty and put it into your working directory or, better, the whole package xcolor, using MikTeX tools of updating.

Not the answer you're looking for? Browse other questions tagged or ask your own question.