I am using lyx for writing a latex document. The following is the preamble in Document > Settings
:
\usepackage{fullpage}
\newcommand{\authnote}[1]{\textcolor{green}{\small {\textbf{(Auth:} #1\textbf{) }}}}
\usepackage{hyperref}
And the document contains only 1 line:
In the Ctrl+L environment: \authnote{aa}
It is giving an undefined control sequence error. What's the problem?
\textcolor
so you need to load a package that defines that command, e.g.color
orxcolor