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

Continuing my odyssey with oldstyle numbers, I'd like to disable them also in the optional (second) argument of \cite{...}*{...} in amsrefs. Any hints how to do that? (I'm using XeLaTeX, but this is probably irrelevant here, since the problem is now not "how to get rid of oldstyle numbers", but "how to change the style of the second \cite's argument".)

Edit: here's an example:




See \cite{somebook}*{p.~123}.
Also compare \citelist{\cite{somebook}\cite{anotherbook}*{p.987}}.

      title={Another Title},
      author={Somebody Else},


What I'd like to achieve is to change the style of "p. 123" (for instance, to boldface).

Edit 2: It seems that \citelist is a bonus challenge to this... (I modified the MWE above to show the problem.)

share|improve this question
Would you be so kind to provide a minimal example? – egreg May 3 '12 at 7:49
@egreg: Added, sorry for that omission. – mbork May 3 '12 at 10:06
This won't use oldstyle numerals; please tell how you get them. – egreg May 3 '12 at 11:36
Right, so assume (for the sake of simplicity and minimality of the example) that I want to have the "p. 123" in boldface. – mbork May 3 '12 at 11:38
up vote 3 down vote accepted

Examining amsrefs.sty, \citemid is used only once:

\def\citemid{,\penalty9999 \space}

                \cite@cb#1% write info to aux file
            \ignorespaces % ignore spaces inside \citelist

So it seems quite safe to redefine \citemid:

\def\citemid#1{,\penalty9999 \space{\bfseries#1}}

Note that the text p.~123 will be passed as #2, in this case.

share|improve this answer
Thanks. The problem with oldstyle numbers is that I do want them in text, where there are lots of dates. I do not want them in maths (which is obvious, and where they are absent anyway), but also in references of all kinds (where they might look strange between braces). (Well, I like them there also, but the decision-makers don't.) – mbork May 3 '12 at 11:52
And AFAIR, \citemid is not really what I would like to patch here. The problem is that amsrefs is very hard to hack imho... – mbork May 3 '12 at 11:53
Thanks again. Works fine for \cite, but fails for \citelist... – mbork May 3 '12 at 12:14
The hack to \citemid seems to work. I've modified it. – egreg May 3 '12 at 12:24
Thanks a lot! You're right, this works (although I have a feeling that \citemid is not really for this kind of hacks). – mbork May 3 '12 at 12:31

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.