Re: Customizing counters of theorem environments.

2021-07-21 Thread Rudi Gaelzer
(Ditto here) Thanks for the reply, Paul. On quarta-feira, 21 de julho de 2021 17:40:48 -03 Paul A. Rubin wrote: > (Accidentally replied directly rather than to the list. Better late than > never?) > > I can see no reason to mess with the layout translations file. If your LyX > user interface

Re: Customizing counters of theorem environments.

2021-07-21 Thread Paul A. Rubin
(Accidentally replied directly rather than to the list. Better late than never?) I can see no reason to mess with the layout translations file. If your LyX user interface uses a language other than English, just give your custom theorem environment a layout name in that language. If your new

Re: Customizing counters of theorem environments.

2021-07-21 Thread Rudi Gaelzer
I would like to run by you my solution and ask another question. I copied the files theorems-ams-bytype.module and theorems-ams-bytype.inc into my local layouts directory (with new names), then edited them accordingly. For instance, in the .inc file, for the Lemma style, inside the Preamble

Re: Customizing counters of theorem environments.

2021-07-20 Thread Rudi Gaelzer
Well, it seems that the solution is indeed via \renewtheorem. However, I had to dig deep into the installation of AMS theorem to find the proper names of the counters. So far, I've found \thethm, \thelem, \thedefn, etc. I did not find a full list of counters, so if someone could point me out

Customizing counters of theorem environments.

2021-07-20 Thread Rudi Gaelzer
Hi there. I'm using the module Theorems (AMS, Numbered by Type). I would like to change the counters of theorem-like environs, adding a fixed string in front of the number. Something like Theorem TGA-1 Definition TGA-2 etc Can I do that the usual way that is done for the standard LaTeX