In the following document, the subsection title gets colored red. Why does this happen?
\documentclass{article}
\usepackage{color}
\newcommand{\comment}[1]{{\color{red}#1}}
\begin{document}
\paragraph{This should not be red!}
\comment{Only this!}
\end{document}
How can I fix it? If I replace {\color{red}#1} with \textcolor{red}{#1} I get a "runaway argument" error.
\newcommand{\comment}[1]{\textcolor{red}{#1}}I don't get an error and the colouring is correct. – Will Robertson Sep 26 '10 at 19:45