Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#4282 closed defect (fixed)

AMS styles with Definition, Properties etc don't compile

Reported by: yokota@… Owned by: nobody@…
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)

amsOK.lyx (904 bytes ) - added by yokota@… 17 years ago.
lyx file that compiles successfully (Theorem -> Definition)
amsError.lyx (904 bytes ) - added by yokota@… 17 years ago.
lyx file that fails to compile (Definition -> Theorem)

Download all attachments as: .zip

Change History (12)

by yokota@…, 17 years ago

Attachment: amsOK.lyx added

lyx file that compiles successfully (Theorem -> Definition)

by yokota@…, 17 years ago

Attachment: amsError.lyx added

lyx file that fails to compile (Definition -> Theorem)

comment:1 by yokota@…, 17 years ago

* #4281 has been marked as a duplicate of this bug. *

comment:2 by Juergen Spitzmueller, 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:3 by Juergen Spitzmueller, 17 years ago

Cc: j.spitzmueller@… added

if you could text it:

*Sigh* ... too much texting nowadays.

comment:4 by yokota@…, 17 years ago

Yes, the patch seems working well.

comment:5 by Juergen Spitzmueller, 17 years ago

Cc: lasgouttes@… added

Jean-Marc, your bug.

comment:6 by lasgouttes, 17 years ago

Keywords: regression added
Resolution: fixed
Status: newclosed

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 lasgouttes, 17 years ago

Cc: pelle@… added

comment:8 by lasgouttes, 17 years ago

* #4307 has been marked as a duplicate of this bug. *

comment:9 by Uwe Stöhr, 16 years ago

Cc: ateshian@… added

comment:10 by Uwe Stöhr, 16 years ago

* #4321 has been marked as a duplicate of this bug. *

Note: See TracTickets for help on using tickets.