On Fri, Jul 14, 2000 at 08:22:55AM +0200, Andre Poenitz wrote:
>
> I fiddled with a .layout file, and there is now a style 'Proof'.
>
> In LyX everything looks ok (including e.g. the EndLabel),
> but the exported LaTeX looks like:
>
> .... some text.
> \end{proof}
> And here comes the next paragraph ...
>
> The .dvi consequently looks like
>
> .... some text. [] And here comes the next paragraph ...
>
> i.e. there is either a \par or an empty line after the \end{proof}
> missing. How can I convince LyX to insert one there?
One possible solution:
Style Proof
...
Preamble
\newenvironment{proof}{\emph{Proof:}}{\hfill\rule{2mm}{2mm}\par\vspace{2mm}}
EndPreamble
End
^^^
(note the \par command!)