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'm using the abbrevs package to provide nicer formatting of BC/AD in dates, but when I use one of the commands in a caption I get an error. Example document:



\caption{1500--1000 \BC.}


The error is:

! Argument of \@caption has an extra }.

Removing the \BC eliminates the error, which leads me to think the problem is in the combination of the two... so how can I use an abbreviation in a caption? Alternatively, is there a better package for formatting BC/AD in dates?

share|improve this question
Such an error almost always means: "you have a fragile command in a moving argument", in this case the argument to \caption. Use \protect\BC. – egreg Mar 4 '13 at 9:09
up vote 5 down vote accepted

Many of the commands defined by abbrevs are fragile; for example, \BC expands to \DateMark {b.c} and, in turn, the definition of \DateMark is

\newcommand\DateMark [1] {%
  \hspace{.2em}{\DateMarkSize\scshape #1}%
  \@ifnextchar. {%
    }{% ELSE

Any command with \@ifnextchar in its definition is fragile, so it needs to be "protected" when in a moving argument.


  1. Easy, if you don't have too many of these commands in moving arguments

    \caption{1500--1000 \protect\BC.}
  2. Safer, if you don't want to bother with all these \protect

    \robustify{\DateMark} % after having loaded abbrevs

    It's better to robustify \DateMark rather than \BC, as this covers all date abbreviations.

share|improve this answer
Fantastic, many thanks. I went with option 2 as that seemed cleaner. – stusmith Mar 4 '13 at 9:34

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.