Paul Smith wrote:
Dear All

Before proceeding, please have a look at my attached example. LyX
converts the proof to LaTeX as follows:

\begin{proof}

This is my short proof.

\end{proof}

However, due to a bug in the ntheorem package, the end-mark symbol
does not appear; one needs to delete the empty lines between "This is
my short proof.". Is it possible to instruct LyX to automatically
delete those lines?


put the following in ~/.lyx/layouts/stdlayouts.inc

# Proof style definition
Style Proof
  Margin                Static
  LatexType             Environment
  LatexName             proof
  NextNoIndent          1
  LeftMargin            MMM
  RightMargin           MMM
  TopSep                0.5
  ParSep                0.5
  BottomSep             0.5
  Align                 Block
  AlignPossible         Block, Left, Right, Center
  LabelType             No_Label
  Preamble
\usepackage[thmmarks]{ntheorem}
\theoremheaderfont{\itshape\bfseries}
\theorembodyfont{\normalfont}
\theoremstyle{nonumberplain}
\theoremsymbol{\rule{1ex}{1ex}}
\newtheorem{proof}{Proof}
  Endpreamble
End


then restart LyX and you can choose Proof from the layout menu and no additional definitions in the preamble are needed

Herbert


-- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes



Reply via email to