On 17/11/2016 10:56 p.m., Bernt Lie wrote:

-----Original Message-----
From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of 
Andrew Parsloe
Sent: torsdag 17. november 2016 10.43
To: lyx-users@lists.lyx.org
Subject: Re: Numbering of Theorems, etc.



On 17/11/2016 9:43 p.m., Bernt Lie wrote:
-----Original Message-----

From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On
Behalf Of Andrew Parsloe


    Perhaps I've misunderstood, but it seems to me what is wanted is
the module Theorems (Numbered by

    Type within Chapters) that comes with LyX.

    This allows one to number by type within chapters each of theorems,
corollaries, lemmas, propositions,

    conjectures, facts, definitions, examples, problems, exercises,
remarks and claims.

     Andrew

--

Thanks Andrew. Yes, that's what I also thought, but this has no
effect... Choosing

and

seems to give the same result. I don’t understand why. (Is it because
the first selection says AMS, Numbered by Type, and the second one
doesn’t mention AMS?)

Anyway, depending on which choice I make first, not all choices are
available. Example: with the latter of these choices (both Theorems
(AMS, ...) and Theorems (Numbered by Type...)...

·if I try to select Theorems (AMS, ...) first, option “Delete” is not
available

·so I have to delete the second option first, and then after that, I
can delete “Theorems (AMS, ...)”.

Likewise, module “Theorems (Numbered by Type within Chapters)” – which
is really what I want – can only be added if I **first** add “Theorems
(AMS, Numbered by Type)”... and then it doesn’t give the expected effect.

Ideally, this is how I’d like it to work, without having to “hack” in
the preamble...

--

Thanks,

Bernt


     LyX doesn't supply all the modules necessary to use AMS environments 
numbered by type within
     chapters. I ran into this problem some weeks ago but found I could create 
or adjust the necessary
     modules using the supplied ones as models. I've attached the new/adjusted 
ones to this email. Place
     them in the layouts folder of your personal LyX directory.
     Then you will need to reconfigure LyX so it knows of them.

     There are dependencies among the modules which is why some can't be added 
or deleted without
     others.
--
Thanks, Andrew...

* I will probably be able to figure out what the "layouts folder of your personal 
LyX directory" is. I *assume* that what I have to do, is simply save the attached 
files in this folder. (Explorer... using %appdata%, I found folder layouts under LyX2.2.)

* "Then you will need to reconfigure LyX so it knows of them". Here, I'm lost 
as to what this means. Does this simply mean: go into Document Settings of LyX, and add 
the new modules in the Modules part? Or something entirely different?


-Bernt

OK, I see others have intervened while I've been asleep but for completeness I'll answer anyway.

"layouts folder of your personal LyX directory": On my windows 7 machine, the folder is C:\Users\Andrew\AppData\Roaming\LyX2.2\layouts. (On your machine obviously the "Andrew" will be different but the folder you've discovered sounds like the right one.) Save the files to this folder.

Reconfiguring LyX: Open LyX. Under Tools > Reconfigure click Reconfigure. A lot of activity will show in the status bar at the bottom of the LyX window, LyX may even seem to freeze for some seconds, and then a message box should pop up telling you to close then restart LyX. When you do and go to Documents > Settings > Modules the new modules should be present in the list.

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to