<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I would like to run by you my solution and ask another question.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">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 EndPreamble field I included the line </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">      \renewcommand{\thelem}{\thearea-\arabic{lem}}</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">\thearea being the prefix to the lemma counter.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Did similar things for the other styles, then reconfigured LyX and voila! My customized module is accessible (and works as intended).</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I just don't know if this solution is sanctioned by you LyX developers...</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Now the question I want to ask.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I want to create a new theorem-like environment.  Reading through the Customization.lyx manual, I understand that the different translations for the names of the environs reside in the layouttranslations file.  Looking into it, it says that</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"># This file has been automatically generated by po/lyx_pot.py.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"># PLEASE MODIFY ONLY THE LAGUAGES HAVING NO .po FILE! If you want to regenerate</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"># this file from the translations, run `make ../lib/layouttranslations' in po.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"># Python polib library is needed for building the output file.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">I confess I did not quite grasp the process. Do I have to create a local layouttranslations file containing the translations for the new environment name?  Is there a more detailed guide for this procedure?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On terça-feira, 20 de julho de 2021 20:20:41 -03 Rudi Gaelzer wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Well, it seems that the solution is indeed via \renewtheorem.  However, I</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> had to dig deep into the installation of AMS theorem to find the proper</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> names of the counters. So far, I've found \thethm, \thelem, \thedefn, etc.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> I did not find a full list of counters, so if someone could point me out</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> where I can find such a list, I'd be grateful.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Rudi Gaelzer</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Institute of Physics</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Federal University of Rio Grande do Sul</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">BRAZIL</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Registered linux user # 153741</p>
</body>
</html>