TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted

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.

share|improve this answer
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? – Lawrence Wong Jul 13 '14 at 20:45
@LawrenceWong Your wish is my command – egreg Jul 13 '14 at 21:08
Very clear and detailed. Thank you very much! – Lawrence Wong Jul 16 '14 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{...}.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.