Currently I am using beamer slides how ever I found the template where I am understanding how we can write fonts with different colour but to define colour I have used the codes like this
\newcommand\red[1]{{\color{red}#1}}
\newcommand\violet[1]{{\color{violet}#1}}
\newcommand\green[1]{{\color{OliveGreen}#1}}
\newcommand\blue[1]{{\color{blue}#1}}
However I am getting the error when debugging the error I got to know that I have used a package
\usepackage[usenames,dvipsnames]{pstricks}
I don't want to remove this package can you please some one suggest me how I will not get any error.
usenames
anddvipsnames
are options to thecolor
package not thepstricks
package.usenames
is deprecated, but you may need to pass dvipsnames to beamer as\documentclass[xcolor={dvipsnames}]{beamer}
instead to avoid a package option mismatch.