[Tex/LaTex] Keywords and MSC Classification in LaTeX article class


In the amsart document class, one has the commands \keywords{foo} and \subjclass{foo}. I was wondering, how does one make similar commands for the standard LaTeX article class?

Best Answer

The amsart commands are defined to create commands \@keywords and \@subjclass, which are then used to typeset footers in the \maketitle command. You could hack the \maketitle command provided by the article class (or even better, redefine it in a class of your own) to provide similar functionality, but it's easier (and sloppier) to hack the \@title command:

  \gdef\@title{\@oldtitle\footnotetext{#1 \emph{Mathematics subject classification.} #2}}%
  \gdef\@title{\@@oldtitle\footnotetext{\emph{Key words and phrases.} #1.}}%

These definitions are very hacky and likely require correct ordering of things (and as I said you really should either hack the \maketitle command properly or extend article with your own class). Most importantly, use \keyword and \subject after \title. But it works.

Related Question