Individual counters for Problems, Examples, etc.?

Bernt Lie Bernt.Lie at usn.no
Mon Oct 3 12:58:33 UTC 2022


Thanks for quick response, Udi

This works perfectly!

-B

-----Original Message-----
From: Udicoudco <udifoglle at gmail.com> 
Sent: Monday, October 3, 2022 2:56 PM
To: Bernt Lie <Bernt.Lie at usn.no>
Cc: lyx-users at lists.lyx.org
Subject: Re: Individual counters for Problems, Examples, etc.?

On Mon, Oct 3, 2022 at 2:50 PM Bernt Lie via lyx-users <lyx-users at lists.lyx.org> wrote:
>
> In LyX 2.3.6.1 under Windows 11, I have a document of Document Class "Article (Standard Class with Extra Fontsizes)".
>
>
>
> Currently, all "theorem-like" elements use the same counter, e.g., Examples, Problems, etc., use the same counter.
>
>
>
> I want to use separate counters for the various elements.
>
>
>
> How do I do that in LyX? [In LaTeX, I put a "newtheorem" command in the Preamble I think.  But in LyX, these elements already exist... so I assume that I mess things up if I create a new "Problem", etc.
>
>
>
> Thanks for help.
>
>
>
> -B

Hello Bernt,

Note that there are no theorem layouts that are defined in the article class, you are probably using a theorem module.

Go to Documents->Settings-Modules and see which module you are using.
What you are looking for is a module that defines the theorems to be numbered by type, so for example you can select the Theorems (Numbered By Type) module.

If you also want the theorems to be conutered within another counter (say section), then there are also modules for that too.

To get more information about modules, you can read section 3.1.2.3 LyX's User's Guide, which can be found in Help->User's Guide.

There are also a few examples for the usage of modules in different sections.

Regards,
Udi
> lyx-users mailing list
> lyx-users at lists.lyx.org
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists
> .lyx.org%2Fmailman%2Flistinfo%2Flyx-users&data=05%7C01%7CBernt.Lie
> %40usn.no%7C84b815e9d5fa48a7aa4208daa53e9846%7Cbc758dd0ab5343729a7ce98
> a9620862c%7C0%7C0%7C638003985503069062%7CUnknown%7CTWFpbGZsb3d8eyJWIjo
> iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> 7C%7C&sdata=vtIgP4%2FnLaqIrfg9tJZJnfUMybBGciMpsmQrPjLsE%2Fo%3D&amp
> ;reserved=0


More information about the lyx-users mailing list