Sean Hammond wrote:
Hi,

I've just begun using LyX (very impressed) and subscribed ot the mailing lists.

One thing I haven't been able to figure out is how to print comments
out to (for example) PDF files in a different colour or font
(preferably colour) to differentiate them from the rest of the text.

If I put the following:

\usepackage{comment}
\includecomment{comment}

in my preamble then comments I insert in LyX will be output to PDF. In
LyX, the comments are clearly differentiated from the rest of the text
- being in a different colour, indented and labelled 'comment.' But
when output they look exactly like any other text.

Is there anything I can add to the preamble that will change the
colour or font of the comments?

Thanks


You could add something like the following to the preamble:

\usepackage[dvipsnames]{xcolor}
\renewenvironment{comment}{\itshape \color{BurntOrange}}{}

(This of course assumes that you have the xcolor package installed.) Change font properties and color to taste. You may want to change the option to the xcolor package to get a different list of colors. (But how can you not like burnt orange?)

/Paul

Reply via email to