Jürgen Spitzmüller wrote:
> > On a related note, I also posted a bug fix for the existing theorem
> > modules -- under certain circumstances (which I've since forgotten), the
> > title (Theorem, Lemma, ...) appears in italics rather than bold.  I
> > can't find a Trac ticket for that, so my guess is I also e-mailed that
> > to the list.  In case it flew under the radar, the patched files are on
> > the wiki
> > (http://wiki.lyx.org/uploads/Modules/theorems_1_6_3/theorem_fixes.zip).
>
> I'll have a look

Attached is a diff of your changes (plus some indendation fixes by me). 
Basically, you are changing the non-AMS theorems to use \theoremstyle{plain} 
as well.

However, in order to decide, we need to know what exact bug you try to fix 
with this.

Jürgen
Index: lib/layouts/theorems-chap.module
===================================================================
--- lib/layouts/theorems-chap.module	(Revision 30774)
+++ lib/layouts/theorems-chap.module	(Arbeitskopie)
@@ -7,6 +7,7 @@
 #Excludes: theorems-sec
 
 # Author: Richard Heck <rgh...@comcast.net>
+# Tweaked by Paul Rubin <ru...@msu.edu> June '09 (added theoremstyle)
 
 Format 11
 
@@ -16,6 +17,7 @@
 
 Style Theorem
 	Preamble
+		\theoremstyle{plain}
 		\ifx\thechapter\undefined
 			\newtheorem{thm}{Theorem}
 		\else
Index: lib/layouts/theorems-ams.module
===================================================================
--- lib/layouts/theorems-ams.module	(Revision 30774)
+++ lib/layouts/theorems-ams.module	(Arbeitskopie)
@@ -10,7 +10,7 @@
 # Original Author : David L. Johnson <d...@lehigh.edu>
 # Probably broken by Jean-Marc Lasgouttes <jean-marc.lasgout...@inria.fr>
 # modified and modularized by Emmanuel GUREGHIAN <gureg...@boston.bertin.fr>
-# Tinkered with Sep. '07 by Paul Rubin <ru...@msu.edu>
+# Tinkered with Sep. '07 and June '09 by Paul Rubin <ru...@msu.edu>
 # Modularized Jan 08 by Richard Heck <rgh...@comcast.net>
 
 Format 11
@@ -20,10 +20,6 @@
 Counter theorem
 End
 
-AddToPreamble
-	\theoremstyle{plain}
-EndPreamble
-
 Input theorems-order.inc
 Input theorems-ams.inc
 Input theorems-starred.inc
Index: lib/layouts/theorems.inc
===================================================================
--- lib/layouts/theorems.inc	(Revision 30774)
+++ lib/layouts/theorems.inc	(Arbeitskopie)
@@ -1,7 +1,7 @@
 # Original Author : David L. Johnson <d...@lehigh.edu>
 # Probably broken by Jean-Marc Lasgouttes <jean-marc.lasgout...@inria.fr>
 # modified and modularized by Emmanuel GUREGHIAN <gureg...@boston.bertin.fr>
-# Tinkered with Sep. '07 by Paul Rubin <ru...@msu.edu>
+# Tinkered with Sep. '07 and June '09 by Paul Rubin <ru...@msu.edu>
 # Modularized Jan 08 by Richard Heck <rgh...@comcast.net>
 
 # The environnements defined are :
@@ -49,6 +49,7 @@
 	  Series              Bold
 	EndFont
 	Preamble
+		\theoremstyle{plain}
 		\newtheorem{thm}{Theorem}
 	EndPreamble
 	Requires              amsthm
@@ -61,7 +62,8 @@
 	LatexName             cor
 	LabelString           "Corollary \thetheorem."
 	Preamble
-	  \newtheorem{cor}[thm]{Corollary}
+		\theoremstyle{plain}
+		\newtheorem{cor}[thm]{Corollary}
 	EndPreamble
 End
 
@@ -72,7 +74,8 @@
 	LatexName             lem
 	LabelString           "Lemma \thetheorem."
 	Preamble
-	  \newtheorem{lem}[thm]{Lemma}
+		\theoremstyle{plain}
+		\newtheorem{lem}[thm]{Lemma}
 	EndPreamble
 End
 
@@ -83,7 +86,8 @@
 	LatexName             prop
 	LabelString           "Proposition \thetheorem."
 	Preamble
-	  \newtheorem{prop}[thm]{Proposition}
+		\theoremstyle{plain}
+		\newtheorem{prop}[thm]{Proposition}
 	EndPreamble
 End
 
@@ -94,7 +98,8 @@
 	LatexName             conjecture
 	LabelString           "Conjecture \thetheorem."
 	Preamble
-	  \newtheorem{conjecture}[thm]{Conjecture}
+		\theoremstyle{plain}
+		\newtheorem{conjecture}[thm]{Conjecture}
 	EndPreamble
 End
 
@@ -105,7 +110,8 @@
 	LatexName             fact
 	LabelString           "Fact \thetheorem."
 	Preamble
-	  \newtheorem{fact}[thm]{Fact}
+		\theoremstyle{plain}
+		\newtheorem{fact}[thm]{Fact}
 	EndPreamble
 End
 
@@ -123,8 +129,8 @@
 	  Series              Bold
 	EndFont
 	Preamble
-	  \theoremstyle{definition}
-	  \newtheorem{defn}[thm]{Definition}
+		\theoremstyle{definition}
+		\newtheorem{defn}[thm]{Definition}
 	EndPreamble
 End
 
@@ -134,8 +140,8 @@
 	LatexName             example
 	LabelString           "Example \thetheorem."
 	Preamble
-	  \theoremstyle{definition}
-	  \newtheorem{example}[thm]{Example}
+		\theoremstyle{definition}
+		\newtheorem{example}[thm]{Example}
 	EndPreamble
 	Requires              amsthm
 End
@@ -146,8 +152,8 @@
 	LatexName             problem
 	LabelString           "Problem \thetheorem."
 	Preamble
-	  \theoremstyle{definition}
-	  \newtheorem{problem}[thm]{Problem}
+		\theoremstyle{definition}
+		\newtheorem{problem}[thm]{Problem}
 	EndPreamble
 	Requires              amsthm
 End
@@ -158,8 +164,8 @@
 	LatexName             xca
 	LabelString           "Exercise \thetheorem."
 	Preamble
-	  \theoremstyle{definition}
-	  \newtheorem{xca}[thm]{Exercise}
+		\theoremstyle{definition}
+		\newtheorem{xca}[thm]{Exercise}
 	EndPreamble
 	Requires              amsthm
 End
@@ -179,8 +185,8 @@
 	  Shape               Italic
 	EndFont
 	Preamble
-	  \theoremstyle{remark}
-	  \newtheorem{rem}[thm]{Remark}
+		\theoremstyle{remark}
+		\newtheorem{rem}[thm]{Remark}
 	EndPreamble
 End
 
@@ -190,8 +196,8 @@
 	LatexName             claim
 	LabelString           "Claim \thetheorem."
 	Preamble
-	  \theoremstyle{remark}
-	  \newtheorem{claim}[thm]{Claim}
+		\theoremstyle{remark}
+		\newtheorem{claim}[thm]{Claim}
 	EndPreamble
 	Requires              amsthm
 End
Index: lib/layouts/theorems-sec.module
===================================================================
--- lib/layouts/theorems-sec.module	(Revision 30774)
+++ lib/layouts/theorems-sec.module	(Arbeitskopie)
@@ -6,6 +6,7 @@
 #Excludes: theorems-chap
 
 # Author: Richard Heck <rgh...@comcast.net>
+# Tweaked by Paul Rubin <ru...@msu.edu> June '09 (added theoremstyle)
 
 Format 11
 
@@ -15,6 +16,7 @@
 
 Style Theorem
 	Preamble
+		\theoremstyle{plain}
 		\newtheorem{thm}{Theorem}[section]
 	EndPreamble
 End

Reply via email to