Hello,
Have you wondered how to make a flexible layout which fits your
needs? It is easeir than you think. the amsthm package is flexible and has the most you need, so why don't use it as your starting point. So I did. A simple copy and paste from the existing layouts can be used
to create a very flexible "ego" layout, with article as the base.
As you see from the attached layout file and inclusion file, it is very easy to access the amtheorems flexiblity in your own article environment.
just copy the files to the directory with your layout files, start LyX, choose edit-reconfigure, restart LyX and enjoy
hope you find the example useful
# COPIED FROM ams-seq.inc # Author : David L. Johnson <[EMAIL PROTECTED]> # Probably broken by Jean-Marc Lasgouttes <[EMAIL PROTECTED]> # modified and modularized by Emmanuel GUREGHIAN <[EMAIL PROTECTED]> # further slightly amended by Staffan Ringbom
# These are only the theorems styles environnements
# The environnements defined are :
# - Theorem
# - Corollary
# - Lemma
# - Proposition
# - Conjecture
# - Criterion
# - Algorithm
# - Fact
# - Axiom
# - Definition
# - Assumption
# - Example
# - Condition
# - Problem
# - Exercise
# - Remark
# - Claim
# - Note
# - Notation
# - Summary
# - Acknowledgement
# - Case
# - Conclusion
# Theorem-numbered style declaration
Style Theorem
Preamble
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
EndPreamble
End
# Corollary-numbered style declaration
Style Corollary
Preamble
\theoremstyle{plain}
\newtheorem{cor}{Corollary}
EndPreamble
End
# Lemma-numbered style declaration
Style Lemma
Preamble
\theoremstyle{plain}
\newtheorem{lem}{Lemma}
EndPreamble
End
# Proposition-numbered style declaration
Style Proposition
Preamble
\theoremstyle{plain}
\newtheorem{prop}{Proposition}
EndPreamble
End
# Conjecture-numbered style declaration
Style Conjecture
Preamble
\theoremstyle{plain}
\newtheorem{conjecture}{Conjecture}
EndPreamble
End
# Criterion-numbered style declaration
Style Criterion
Preamble
\theoremstyle{plain}
\newtheorem{criterion}{Criterion}
EndPreamble
End
# Algorithm-numbered style declaration
Style Algorithm
Preamble
\theoremstyle{plain}
\newtheorem{algorithm}{Algorithm}
EndPreamble
End
# Fact-numbered style declaration
Style Fact
Preamble
\theoremstyle{plain}
\newtheorem{fact}{Fact}
EndPreamble
End
# Axiom-numbered style declaration
Style Axiom
Preamble
\theoremstyle{plain}
\newtheorem{ax}{Axiom}
EndPreamble
End
# Definition-numbered style declaration
Style Definition
Preamble
\theoremstyle{definition}
\newtheorem{defn}{Definition}
EndPreamble
End
# Assumption-numbered style declaration
Style Assumption
Preamble
\theoremstyle{definition}
\newtheorem{ass}{Assumption}
EndPreamble
End
# Example-numbered style declaration
Style Example
Preamble
\theoremstyle{definition}
\newtheorem{example}{Example}
EndPreamble
End
# Condition-numbered style declaration
Style Condition
Preamble
\theoremstyle{definition}
\newtheorem{condition}{Condition}
EndPreamble
End
# Problem-numbered style declaration
Style Problem
Preamble
\theoremstyle{definition}
\newtheorem{problem}{Problem}
EndPreamble
End
# Exercise-numbered style declaration
Style Exercise
Preamble
\theoremstyle{definition}
\newtheorem{xca}{Exercise}
EndPreamble
End
# Remark-numbered style declaration
Style Remark
Preamble
\theoremstyle{remark}
\newtheorem{rem}{Remark}
EndPreamble
End
# Claim-numbered style declaration
Style Claim
Preamble
\theoremstyle{remark}
\newtheorem{claim}{Claim}
EndPreamble
End
# Note-numbered style declaration
Style Note
Preamble
\theoremstyle{remark}
\newtheorem{note}{Note}
EndPreamble
End
# Notation-numbered style declaration
Style Notation
Preamble
\theoremstyle{remark}
\newtheorem{notation}{Notation}
EndPreamble
End
# Summary-numbered style declaration
Style Summary
Preamble
\theoremstyle{remark}
\newtheorem{summary}{Summary}
EndPreamble
End
# Acknowledgement-numbered style declaration
Style Acknowledgement
Preamble
\theoremstyle{remark}
\newtheorem{acknowledgement}{Acknowledgement}
EndPreamble
End
# Case-numbered style declaration
Style Case
Preamble
\theoremstyle{remark}
\newtheorem{case}{Case}
EndPreamble
End
# Conclusion-numbered style declaration
Style Conclusion
Preamble
\theoremstyle{remark}
\newtheorem{conclusion}{Conclusion}
EndPreamble
End
####################################################
# Proof style declaration, copied from amsdefs.inc
####################################################
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 Box
# standard font definition
Font
Shape Up
Size Normal
EndFont
# label font definition
LabelFont
Shape Italic
EndFont
# We don't want the preamble from Theorem
Preamble
EndPreamble
End
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[article]{article (ego)}
# For introduction of AMStheorem style enivronments
# adapted from ams-seq.inc and amsdefs.inc
Input article.layout
Input ego.inc
# Use a simple preamble.
Preamble
\usepackage{amsthm}
EndPreamble
