% Maintained by Matthew Bertucci, 2024-present
% Please report all issues and feature requests at https://github.com/mbertucci47/keytheorems
% This work is licensed under the LPPL version 1.3c or later: https://www.latex-project.org/lppl.txt
\ProvidesExplFile{keythms-amsart-support}{2024-10-05}{0.1.6}
  {keytheorems~support~for~the~amsart~class}

\__keythms_support_AMSshared_code:

\IfClassLoadedTF { acmart }
  { % acmart loads amsart
    \keytheoremset{overload} % since acmart predefines several theorems
    \prop_gput_from_keyval:Nn \g__keythms_thmstyle_defaultkeys_prop
      {
        bodyfont      = \@acmplainbodyfont,
        headfont      = \@acmplainheadfont,
        headindent    = \@acmplainindent,
        notefont      = \@acmplainnotefont,
        postheadspace = .5em,
        spaceabove    = .5\baselineskip plus .2\baselineskip minus .2\baselineskip,
        spacebelow    = .5\baselineskip plus .2\baselineskip minus .2\baselineskip,
      }
    \keys_define:nn { keytheorems/thmstyle }
      {
        inherit-style / acmplain      .meta:n = {},
        inherit-style / acmdefinition .meta:n =
          {
            bodyfont   = \@acmdefinitionbodyfont,
            headindent = \@acmdefinitionindent,
            headfont   = \@acmdefinitionheadfont,
            notefont   = \@acmdefinitionnotefont,
          },
      }
  }
  {
    \prop_gput_from_keyval:Nn \g__keythms_thmstyle_defaultkeys_prop
      {
        spaceabove = .5\baselineskip plus .2\baselineskip minus .2\baselineskip,
        spacebelow = .5\baselineskip plus .2\baselineskip minus .2\baselineskip,
      }
  }

\keys_define:nn { keytheorems/thmstyle }
  {
    inherit-style / remark .meta:n =
      {
        bodyfont = \normalfont,
        headfont = \itshape,
      }
  }

\file_input_stop: