One way to change the LaTeX command is to override the layout with a "local layout". I give a simple solution here and a larger explanation afterwards:
- Go to Document > Settings > Local Layout
- Paste in the following (adapt as desired):
Style Subjectclass
CopyStyle Address
LatexName subjclass[2020]
LabelString "2020 Mathematics Subject Classification:"
End
- Click on "Validate".
- Click on "OK".
A longer explanation on how to find what you should paste into your local layout:
- Go to Help > About LyX and find your "Library directory".
- Navigate to your library directory and search for a file that contains the word "subjclass". For example, on Linux, you can do use the command
grep -IR "subjclass" *
. This returns the file named layouts/amsdefs.inc
.
- Open
layouts/amsdefs.inc
in a text editor and copy the layout that contains the subjclass string.
Note that you could edit the file layouts/amsdefs.inc
directly and it would work. The advantage of putting it in your local layout is that if you compile the LyX file on a different system, you will get your desired output because the local layout is saved with the file.
For more information on layouts, see Help > Customization. It is a long and at times dry read, but if you plan on using LyX for a while, you will find it useful to know the details in there.
EDIT (thanks to Tamar's comment): we still need to add the following segment, which Carlisle posted, in the preamble, so that amsart would permit the year of 2020:
\makeatletter
\@namedef{subjclassname@2020}{%
\textup{2020} Mathematics Subject Classification}
\makeatother
To do that in LyX, go to Document > Settings and paste the above into the preamble and then click "OK".
tech-support@ams.org
. An update is underway, but feedback may help to hurry it up.\subjclass
because it is generated by LyX. I added Carlisle's segment to my preamble as a workaround to extendamsart
's limitation on the years. If you still believe that my question is relevant to AMS, then I'll send them that too, although I merely like to write my own notes after class withamsart
.amsart
. So this is relevant to AMS. (If there is a problem specific to LyX, then it would be good to report it there too. But I have a long history working in the AMS technical support group, and know how things work -- or don't -- in that environment.)