BibTeX, biblatex and biber[natbib] Spaces in numerical citation

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
khatchad
Posts: 1
Joined: Tue May 04, 2010 9:44 pm

[natbib] Spaces in numerical citation

Post by khatchad »

Hello. I am using natbib numerical citations, and currently my in-text citations look as follows:

[1, 5, 7–9]

Instead, I would like to condense this if at all possible, and remove the spaces to they would look like this:

[1,5,7–9]

I know it's not a big difference, but I am thinking that it could save some space in the long run. How do I go about doing that? Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

olofos
Posts: 56
Joined: Tue Nov 24, 2009 10:37 pm

[natbib] Spaces in numerical citation

Post by olofos »

You could try and and

Code: Select all

\makeatletter
\def\NAT@spacechar{}
\makeatother
to your preamble. It will not look very good if you use any of the citation commands that add author names, though, since they all use the same space. You could also use something like

Code: Select all

\makeatletter
\def\NAT@spacechar{\hspace{.5ex}}
\makeatother
to add a smaller space
Post Reply