\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{xcolour-names}[2005/09/22 colour commands for slides]

% Don't want to include xcolor if printing beamer handouts:
% \ifx\extractcolorspec\undefined
%   \RequirePackage{xcolor}
% \fi

% See section 5.1, page 44 of the xcolors manual:
% black blue brown cyan darkgray gray green lightgray magenta violet
% orange white purple yellow red

\ifx\extractcolorspec\undefined
% Then we are in article mode with the noxcolor option to beamer.
\newcommand*{\red}[1]{#1}
\newcommand*{\blue}[1]{#1}
\newcommand*{\brown}[1]{#1}
\newcommand*{\cyan}[1]{#1}
\newcommand*{\darkgray}[1]{#1}
\newcommand*{\gray}[1]{#1}
\newcommand*{\green}[1]{#1}
\newcommand*{\lightgray}[1]{#1}
\newcommand*{\magenta}[1]{#1}
\newcommand*{\violet}[1]{#1}
\newcommand*{\orange}[1]{#1}
\newcommand*{\white}[1]{#1}
\newcommand*{\purple}[1]{#1}
\newcommand*{\yellow}[1]{#1}
\newcommand*{\emphcolour}[1]{\emph{#1}}
\newcommand*{\ered}[1]{\emph{#1}}
\newcommand*{\eblue}[1]{\emph{#1}}
\newcommand*{\ebrown}[1]{\emph{#1}}
\newcommand*{\ecyan}[1]{\emph{#1}}
\newcommand*{\edarkgray}[1]{\emph{#1}}
\newcommand*{\egray}[1]{\emph{#1}}
\newcommand*{\egreen}[1]{\emph{#1}}
\newcommand*{\elightgray}[1]{\emph{#1}}
\newcommand*{\emagenta}[1]{\emph{#1}}
\newcommand*{\eviolet}[1]{\emph{#1}}
\newcommand*{\eorange}[1]{\emph{#1}}
\newcommand*{\ewhite}[1]{\emph{#1}}
\newcommand*{\epurple}[1]{\emph{#1}}
\newcommand*{\eyellow}[1]{\emph{#1}}
\DeclareRobustCommand*{\alert}[1]{\emph{#1}}
\ifx\color\undefined
\newcommand*{\color}[2][]{}
\fi
\else
\newcommand*{\red}[1]{\textcolor{red}{#1}}
\newcommand*{\blue}[1]{\textcolor{blue}{#1}}
\newcommand*{\brown}[1]{\textcolor{brown}{#1}}
\newcommand*{\cyan}[1]{\textcolor{cyan}{#1}}
\newcommand*{\darkgray}[1]{\textcolor{darkgray}{#1}}
\newcommand*{\gray}[1]{\textcolor{gray}{#1}}
\newcommand*{\green}[1]{\textcolor{green}{#1}}
\newcommand*{\lightgray}[1]{\textcolor{lightgray}{#1}}
\newcommand*{\magenta}[1]{\textcolor{magenta}{#1}}
\newcommand*{\violet}[1]{\textcolor{violet}{#1}}
\newcommand*{\orange}[1]{\textcolor{orange}{#1}}
\newcommand*{\white}[1]{\textcolor{white}{#1}}
\newcommand*{\purple}[1]{\textcolor{purple}{#1}}
\newcommand*{\yellow}[1]{\textcolor{yellow}{#1}}
\newcommand*{\emphcolour}[1]{\emph{\textcolor{red}{#1}}}
\newcommand*{\ered}[1]{\emph{\textcolor{red}{#1}}}
\newcommand*{\eblue}[1]{\emph{\textcolor{blue}{#1}}}
\newcommand*{\ebrown}[1]{\emph{\textcolor{brown}{#1}}}
\newcommand*{\ecyan}[1]{\emph{\textcolor{cyan}{#1}}}
\newcommand*{\edarkgray}[1]{\emph{\textcolor{darkgray}{#1}}}
\newcommand*{\egray}[1]{\emph{\textcolor{gray}{#1}}}
\newcommand*{\egreen}[1]{\emph{\textcolor{green}{#1}}}
\newcommand*{\elightgray}[1]{\emph{\textcolor{lightgray}{#1}}}
\newcommand*{\emagenta}[1]{\emph{\textcolor{magenta}{#1}}}
\newcommand*{\eviolet}[1]{\emph{\textcolor{violet}{#1}}}
\newcommand*{\eorange}[1]{\emph{\textcolor{orange}{#1}}}
\newcommand*{\ewhite}[1]{\emph{\textcolor{white}{#1}}}
\newcommand*{\epurple}[1]{\emph{\textcolor{purple}{#1}}}
\newcommand*{\eyellow}[1]{\emph{\textcolor{yellow}{#1}}}
\DeclareRobustCommand*{\alert}[1]{\emph{\textcolor{red}{#1}}}
\fi
