Hi Diego,
I did something similar for "lyxgreyedout" in my dissertation. The
caveat is that both., "lyxgreyedout" and "comment" are environments,
whereas marginpar is a command. So actually you are looking for a
technique to grab the content of an environment in a way it can be
passed to
Hi, 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