using LyX I'm trying to convert the "comments" into "marginal notes".

I tried several things but without luck.

The best shot was like this:

`\makeatletter`

`\@ifundefined{comment}{}{%`

`\renewenvironment{comment}[1]%`

`{\begingroup\marginpar{\bgroup#1\egroup}}%`

`{\endgroup}}`

`\makeatother`

or like this:

`\@ifundefined{comment}{}{%`

`\renewenvironment{comment}%`

`{\marginpar{}%`

`{}}%`

But what I get is only the first character of the text converted. Like in this image:

[IMAGE MARGINAL NOTE](http://www.latex-community.org/forum/download/file.php?mode=view&id=1861&sid=9005eb57394a8dc8bb4daf584296b915)

I searched a lot trying to find how to solve this but without luck. I found the explanation of what is happening:

> 
> Unexpected Output
>  Only one character is in the new font
>  You thought you changed font over a selection of text, but only the first character has come out in the new font.
>  You have most probably used a command instead of a declaration. The command should take the text as its argument. If you don't group the text, only the first character will be passed as the argument.
> 
> 
> 

What I don't know and wasn't able to find is how to group the text.

Hope someone could help me :-)

Many thanks.

Best Regards,

Diego
(diegostex)