#4282 closed defect (fixed)
AMS styles with Definition, Properties etc don't compile
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 1.5.3 |
Component: | latex export | Version: | 1.5.2 |
Severity: | major | Keywords: | patch regression |
Cc: | lasgouttes@…, j.spitzmueller@…, ateshian@…, pelle@… |
Description
Typically, AMS styles contain environments such as Definition, Properties, so
on, which are derived from Theorem environment. These environments use a counter
"thm" declared by \newtheorem{thm}{Theorem}. However, if a document contains
only Definition environment for example without Theorem environment, it will not
be compiled successfully.
It seems the order those environments appear matters.
A document which contains these environments in the order of 1) Definition, 2)
Theorem fails to compile, but the one with the order 1) Theorem, 2) Definition
compiles successfully.
WORKAROUND for the moment: Insert a theorem at the beginning of the document *by
any means* :)
Attachments (2)
Change History (12)
by , 17 years ago
by , 17 years ago
Attachment: | amsError.lyx added |
---|
lyx file that fails to compile (Definition -> Theorem)
comment:2 by , 17 years ago
Keywords: | patch added |
---|---|
Milestone: | → 1.5.3 |
True. Jean-Marc has a patch for it, it would be nice if you could text it:
http://marc.info/?l=lyx-devel&m=119246149130059&w=2
comment:6 by , 17 years ago
Keywords: | regression added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in branch and trunk.
URL: http://www.lyx.org/trac/changeset/21174
URL: http://www.lyx.org/trac/changeset/21176
Log:
- layouts/amsmaths-seq.inc:
- layouts/amsmaths.inc: make sure that the preamble of the Theorem layout is output when using other theorem like layouts that need its counter (#4282).
comment:7 by , 17 years ago
Cc: | added |
---|
comment:9 by , 16 years ago
Cc: | added |
---|
lyx file that compiles successfully (Theorem -> Definition)