Am Sonntag, 13. August 2006 18:33 schrieb Jean-Marc Lasgouttes:
> >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
>
> Georg> Am Sonntag, 13. August 2006 18:08 schrieb Jean-Marc Lasgouttes:
> >> >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]>
> >> writes:
> >>
> Georg> See http://bugzilla.lyx.org/show_bug.cgi?id=2723. The second
> Georg> problem reported there is a completely different one, this
> Georg> patch fixes only the color problem. This is going in trunk soon
> Georg> unless somebody objects.
> >> Does it work with several paragraphs in the note?
>
> Georg> Yes. I first tried
>
> Georg> \newenvironment{lyxgreyedout}{\bgroup\color[gray]{0.8}}{\egroup}
>
> Georg> , but that does not resolve the problem. The definition of
> Georg> \textcolor is this:
>
> Georg> [EMAIL PROTECTED]
> Georg> [EMAIL PROTECTED]
>
> Georg> Does this have any side effects?
>
> I think you should read the documentation for the graphics bundle. I
> think they describe why color is special, and how it should be used.
I did that, and they say that the color commands are modelled after the
font commands (e.g. \textbf vs. \bf), and that \textcolor{x}{y}
is "essentially" equivalent to {\color{x}y}.
The missing \leavevmode is exactly what causes the problem. If I add it to
the old definition the bug goes also away. Does \leavevmode have other
side effects we don't want?
Georg