7

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?

khatchad
  • 454

3 Answers3

9

Try the following in your preamble:

\makeatletter
\def\NAT@def@citea{\def\@citea{\NAT@separator}}
\makeatother
Alan Munn
  • 218,180
5
\makeatletter
\def\NAT@spacechar{}
\makeatother
0

You can also decrease the space between multiple citations via a kern in \setcitestyle, e.g. \setcitestyle{citesep={,\kern-0.1em}}.

Bart
  • 397