A while back, someone asked how to compress multiple citations with keys a, b, c, d, e:

Lettered (rather than numbered) citations and natbib's compress option

This was a follow-up question to the very original post asking how to change [1] to [a], for example:

Need to change citation format from [1] to (a)

The solution by S. Segletes that compresses [a,b,c,d,e] to [a--e] looks to be solid and worked at some point. But I cannot get it to work now.

I am using TexPad for MacOS and PDFLaTeX+Bibliography to compile. The output on my end is is simply

cite (?, ?, ?, ?, ? )
and (? ) and (?, ? )

Have there been any significant changes to the natbib package that would prevent this from compiling and displaying properly? Can someone suggest how to fix the following code so that it works (copied from S. Segletes' solution)?

  author = {Author, A.},  year = {2001},  title = {Alpha}}
  author = {Author, A.},  year = {2001},  title = {Alpha TWO}}
  author = {Buthor, B.},  year = {2002},  title = {Bravo}}
  author = {Cuthor, C.},  year = {2003},  title = {Charlie}}
  author = {Duthor, D.},  year = {2004},  title = {Delta}}
cite \cite{A01, A01b, B02, C03, D04}\par
and \cite{A01} and \cite{A01,D04}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.