I am using the following packages in my files Latex sources:
\usepackage{color}
\usepackage[table,xcdraw]{xcolor}
\usepackage[usenames, dvipsnames]{color}
\newcommand{\ricardo}[1]{\colorbox{ForestGreen}{\color{white}\textsf{\textbf{Ricardo}}} \textcolor{ForestGreen}{#1}}
And to mark my notes in the text, I use the command:
\ricardo{text....}
How should I do to make Latex display my notes correctly?
Best Answer
The
xcolor
package is an extension of thecolor
package, so I don't understand why you loaded thecolor
package twice along with thexcolor
package. Moreover, according to page 7 of thexcolor
documentationusenames
is obsolete. I cleaned up the code to this:and the resulting output compiles without a problem: