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
or like this:
\...@ifundefined{comment}{}{%
\renewenvironment{comment}%
{\marginpar{}%
{}}%
But what I get is only the first character of the text converted. Like in the
attached image.
I searched a lot trying to find how to solve this but without luck. I found the
explanation of what is happening here:
http://theoval.cmp.uea.ac.uk/~nlct/latex/csed/solutions/fonts.html
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)<<attachment: marginnote_noluck.jpg>>
