Thanks once more!

I truly understand the need to RTFM, but sometimes one is tired, just looking for a quick fix (having gone through Pascal, 8086 assembly, C, LateX Java, ML, and programmed a half dozen editors...)

I realize one has to modify every "construct" (Definition, Corollary etc.)

I just got the following question:
Why not reverse the process; Rather than modifying a dozen styles?
What would it take to create something like a "Subsection-v2" which would just use as counter the "thm" counter?

Regards,
Ramez
=======================================
On 03/10/2017 23:16, Richard Heck wrote:
On 10/03/2017 03:35 PM, rls wrote:
Thank you for your reply.
I have tried your suggestion verbatim (after correcting a couple of misprints): modifying "Local Layout".

I don't really understand the details,

See Ch 5 of the Customization manual again, and have a look at the file theorems-ams.inc, where the original definitions of these styles are. What we're adding to Local Layout is just modifying those definitions. The syntax takes a bit of getting used to, but it's not too bad, really.

but I noticed one problem:
- Inside a given section (say section 2), the theorem and lemma numbers are all displayed as "2.0".
- The subsection numbers are displayed correctley
- Printing gives correct results.

Sorry, I hadn't tested. You need also to add:

LabelString "Theorem \thesubsection."

and similarly for lemmas. Note that, if you want to use things other than theorems and lemmas, you'll need to add similar modifications for those styles.

You should also put, at the top of the Local Layout, "Format 60", that being the 2.2.x format. This will avoid any possible problems from LyX thinking you intend some other version.

Richard

Reply via email to