> From: Ingar Pareliussen <ingar.parelius...@dmmh.no>
> I am working on a large document and there seem to be an error where  LyX 
> adds 
>an extra brace to the LaTeX code. Removing the margin note from the  
>paragraph-environment fixes the error, so the workaround is easy. However, I  
>think this is an error, should I report it the bugtracker?


LyX is correctly matching braces. The error is misleading, it's an internal 
LaTeX error. 

Before I say more, let me point out a common cause of confusion: "paragraph" 
layout does not mean any old paragraph, it means paragraph **heading** (in the 
same way that section/chapter/etc layouts mean the headings for these, not 
their 
entire content). So it changes the formatting a bit, and also indicates that a 
(very small) logical unit of text is about to follow.

So, you should not be using a paragraph layout *inside* a marginal note, as you 
are in this document, in the same way you wouldn't put a chapter heading in a 
marginal note (well, you can, but you have to do special things). If you just 
like how this environment makes things bold you should be doing something else, 
not using heading layouts. You can ask on this list for help. 

However, changing the inner layout to standard doesn't seem to fix the error. 
On 
the other hand, changing the *outer* layout to standard does fix it, as you 
say. 
Since you *should* be able to have a marginal note in a paragraph heading (or 
section heading, etc), this is a bit strange. This problem doesn't happen to me 
in a fresh document, so I think something in your document's preamble or 
settings is having an effect here. I don't have time to look at it right now 
though.

Jim



Reply via email to