Hello,

some time ago, I have extended class "Article (KomaScript)" to handle theorems and definitions (see attachment). The patch works fine for private use but it is limited and I don't really understand each and every detail.

But as it seems to be very easy to add new theorem environments to an existing TeX class, I am wondering whether we can define a set of "standard" theorem environments that are included in many more classes in generic way. Is that possible?

Michael
Index: lyx-old/lib/layouts/scrreprt.layout
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/layouts/scrreprt.layout,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 scrreprt.layout
--- lyx-old/lib/layouts/scrreprt.layout 1999/09/27 18:44:34     1.1.1.1
+++ lyx-old/lib/layouts/scrreprt.layout 2003/01/07 06:22:31
@@ -5,6 +5,7 @@
 
 # General textclass parameters
 Input scrclass.inc
+Input scrmaths.inc
 
 # Modify bibliography
 Style Bibliography
Style TheoremTemplate
  Margin                First_Dynamic
  LatexType             Environment
  LabelSep              M
  ParIndent             MM
  ParSep                0.4
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Static

  # label font definition
  LabelFont
    Series              Bold
  EndFont
End

Style Theorem
  CopyStyle             TheoremTemplate
  LatexName             theorem
  LabelString           "Theorem #"

  Preamble
    \newtheorem{theorem}{Theorem}
  EndPreamble
End

Style Definition
  CopyStyle             TheoremTemplate
  LatexName             definition
  LabelString           "Definition #"

  Preamble
    \newtheorem{definition}{Definition}
  EndPreamble
End

NoStyle TheoremTemplate

Reply via email to