I am new to amsart. I want to give myself a default running header. So I try to redefine \title in the obvious way as follows.


\renewcommand{\title}[2][My default running title]{\AmStitle[#1]{#2}}

\title{Article title here}
\author{Author name here}


This apparently ends up looping indefinitely. What is the reason for this?


2 Answers 2


The macro \title in amsart is defined in a very indirect way:


which is very clever, but simply disallows you to do that redefinition. In this case even \LetLtxMacro is not good, because of this nonstandard definition.

You can do it with xparse:


     {\gdef\shorttitle{My default running title}}

\title{Article title here}
\author{Author name here}


Actually, it's a bit mysterious why the definition of \title is that one. The standard way to define a macro of that kind would be


because \@dblarg takes care that a call such as


will substitute Title both for #1 and #2, while a call such as

\title[Short]{Long title}

will do the expected thing. Instead of \title@ anything else could be used.

The definition in amsart exploits the fact that


defines \title to expand to


and \\title (a command with a backslash in its name) as if


The next instruction, with \@nx and \@xp replaced by the more comprehensible \noexpand and \expandafter, is


that is essentially the same as saying


(with the difference that \\title needs wome weird trick for being input). So there is no gain whatsoever, because the definition is eventually exactly* the easier one I gave before, except perhaps that the internal macro (\\title, here) is more difficult to get at for a casual user.

The \LetLtxMacro from the letltxmacro package can't work, because \\title exists, but \title is not defined as expected, that is, starting with \@protected@testopt, so it gets confused.

The xparse way is surely clearer.

  • Thank you very much for the helpful answer! I suppose there are other people like me who are too lazy to chase back definitions. So, could you explain in a couple of sentences how the indirect definition works (or perhaps say it is not possible to do so), please? Jul 13, 2014 at 20:45
  • @LawrenceWong Your wish is my command
    – egreg
    Jul 13, 2014 at 21:08
  • Very clear and detailed. Thank you very much! Jul 16, 2014 at 12:13

you can change the title for just one article by adding, after \maketitle,

\markright{My default running title}

or, if you want it on both sides,

\markboth{My default running title}

this does have the disadvantage that it doesn't automatically uppercase the string, so you either need to type it in fully "cased", or apply \MakeTextUppercase{...}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .