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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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