Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a document that is using natbib via the following usepackage command:

\usepackage[numbers,square,comma,sort&compress]{natbib}

When I cite multiple papers using the citep command, I get spaces between each of the numbers. For example, the following citation:

\cite{aldrich05,gudmundson01}

Gives me the following in-text output:

[5, 12]

However, I would like it to read:

[5,12]

Is there a way to accomplish this?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Try the following in your preamble:

\makeatletter
\def\NAT@def@citea{\def\@citea{\NAT@separator}}
\makeatother
share|improve this answer
add comment
\makeatletter
\def\NAT@spacechar{}
\makeatother
share|improve this answer
1  
This actually works but has the side effect of making the citet command look funny. –  Raffi Khatchadourian Jan 24 '11 at 18:26
add comment

Your Answer

 
discard

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.