Jean-Pierre Chrétien wrote:
Hello,
While creating a new layout, I had an error (\theoremstyle missing).
Jean-Marc pointed out that this was defined in amsthm.sty.
Checking AMS in Document->Settings is useless, this does not load
amsthm, only amsmath and amsfonts.
I guess that this patch
--- amsmaths.inc.orig 2008-03-07 18:52:57.501637000 +0100
+++ amsmaths.inc 2008-03-07 17:43:27.941890000 +0100
@@ -68,6 +68,7 @@
Series Bold
EndFont
Preamble
+ \usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
EndPreamble
should have been applied long ago.
Does this need to be included here, or in every theorem environment? If
in every one, then it probably ought to go in a more global sort of
Preamble declaration. Actually, I guess the other ones depend upon that
one, so that would be OK. But it's kind of fragile that way. So...
At present, each new global Preamble over-writes the previous one. This
is very counter-intuitive, so I'd propose this be changed, so that
Preamble sections ADD TO the existing preamble stuff, rather than
totally over-writing it. If necessary, we could also have a
PreambleReset declaration.
Thoughts?
rh