Latex: Convert "Comment" into "Marginal Note"
Posted
by diegos
on Stack Overflow
See other posts from Stack Overflow
or by diegos
Published on 2010-02-13T19:05:00Z
Indexed on
2010/05/15
3:34 UTC
Read the original article
Hit count: 366
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 this image:
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)
© Stack Overflow or respective owner