On Fri, Aug 30, 2002 at 12:47:45PM +0800, Hisyam Lee wrote:
> Hi folks,
> I'm writing a thesis using book class. I wish to use Theorem (something similar
> to article AMS class) but can't find it in the Environment box located on the
> left end of the toolbar (just under the File menu).

Put the attached files in ~/.lyx/layouts/
Open lyx, select Edit->Reconfigure, and exit lyx.
Then, open your document and change the layout to "Book (Theorem)"
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[book]{book (Theorem)}
Input book.layout
Input stdtheorem.inc

Preamble
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[chapter]
EndPreamble
Style Theorem
  Margin                First_Dynamic
  LatexType             Environment
  LatexName             theorem
  NextNoIndent          1
  LabelSep              xx
  ParIndent             MMM
  ParSkip               0.4
  ItemSep               0.2
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.3
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Static
  LabelString           "Theorem #."

  # standard font definition
  Font
    Shape               Italic
    Size                Normal
  EndFont

  # label font definition
  LabelFont
    Shape               Up
    Series              Bold
  EndFont
End

Style Corollary
  CopyStyle             Theorem
  LatexName             corollary
  LabelString           "Corollary #."
  Preamble
\newtheorem{corollary}[theorem]{Corollary}
  EndPreamble
End

Style Lemma
  CopyStyle             Theorem
  LatexName             lemma
  LabelString           "Lemma #."
  Preamble
\newtheorem{lemma}[theorem]{Lemma}
  EndPreamble
End

Style Claim
  CopyStyle             Theorem
  LatexName             claim
  LabelString           "Claim #."
  Preamble
\newtheorem{claim}[theorem]{Claim}
  EndPreamble
End

Style Proof
  Margin                First_Dynamic
  LatexType             Environment
  LatexName             proof
  NextNoIndent          1
  LabelSep              xx
  ParIndent             MMM
  ParSkip               0.4
  ItemSep               0.2
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.3
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Static
  LabelString           "Proof:"
  EndLabelType          Filled_Box

  # standard font definition
  Font
    Shape               Up
    Size                Normal
  EndFont

  # label font definition
  LabelFont
    Shape               Italic
  EndFont
End

Reply via email to