> From: Ingar Pareliussen <ingar.parelius...@dmmh.no>
>
> Yes, I see what  you mean. Paragraph is different, and a poor example. 
However,
> the same  happens with other headings as well, where my work around makes
> sort of  sense(?). Someone might want to put a subsection as a marginpar and
> have it  show up in TOC. Maybe as an example box or something... Not that I 
> would  advise it though :).
>

I think that we understand each other, but just to make doubly sure:

If you have some plain text containing a margin note, and you select it and 
change it to a section heading (or paragraph heading or whatever) then LyX 
produces the following result:

\section{ xxx \protect\marginpar{ yyy } }

which compiles and gives the result that the user was probably hoping for. You 
do NOT get:


\section{ xxx \protect\marginpar{ \section{yyy} } }

which does not compile. This only happens when you go _inside_ the marginpar 
and 
change the text there to "section" as well (telling LyX that "yyy" is another 
heading in its own right).

You're suggesting disallowing the first just to make sure that the user can't 
then go and do the second. Personally I disagree, but maybe the devs will not. 
So I suggest you enter this into the bug tracker and let the devs decide.

Jim



Reply via email to