# Removing Line Breaks in Bibliography compiled with Biblatex

I have a strict page limit on a paper I'm writing, and the page limit includes citations, so to save space I would like to remove the line breaks between entries in my bibliography:

[1] Dr. Seuss. *Horton Hears a Who!* Random House, 1954. [2] J. Lennon. *In His Own Write*.  Macmillan & Scribner, 1964. [3] L. Carroll. *Alice's Adventures in Wonderland*. Macmillan, 1864.


[1] Dr. Seuss. *Horton Hears a Who!* Random House, 1954.
[2] J. Lennon. *In His Own Write*.  Macmillan & Scribner, 1964.
[3] L. Carroll. *Alice's Adventures in Wonderland*. Macmillan, 1864.


At the moment, the biblatex commands I'm using are

\usepackage[firstinits=true,backend=bibtex,doi=false,isbn=false,url=false]{biblatex}
\AtEveryBibitem{%
\clearfield{pages}%
}
\renewcommand{\bibfont}{\normalfont\footnotesize}
\begin{document}
\end{document}

\nocite{*}
\begingroup
\setlength\bibitemsep{0pt}
\setlength\bibnamesep{0pt}
\endgroup


which I think explains why I want to use Biblatex instead of the paralist solution I've seen (and that I could not get to work with Biblatex).

EDIT I: Here are two screen shots showing the spacing differences.

No line break: With line break:

Edit II:

Solved with

\usepackage{setspace}
...
\begin{spacing}{.5}
\printbibliography
\end{spacing}


You might want to try the following modification of the bibliography environment.

The bibliography will be printed unindented (\noindent), the \unspace removes the last space added in the bibliography, the \printtext part adds the label number followed by a space.

\defbibenvironment{bibliography}
{\noindent}% or {} if you like indentation
{\unspace}
{\printtext[labelnumberwidth]{%
\printfield{labelprefix}%
\printfield{labelnumber}}%


If you use this, however, there will be no space before the label, we can add it by

\renewbibmacro*{finentry}{\finentry\addspace}


The MWE

\documentclass{article}
\usepackage[firstinits=true,backend=bibtex,doi=false,isbn=false,url=false]{biblatex}
\AtEveryBibitem{%
\clearfield{pages}%
}
\renewcommand{\bibfont}{\normalfont\footnotesize}

\defbibenvironment{bibliography}
{\noindent}
{\unspace}
{\printtext[labelnumberwidth]{%
\printfield{labelprefix}%
\printfield{labelnumber}}%

\begin{document}
\cite{wilde,shore,springer}

\end{document}


yields

As you can see, this is not very clear and well arranged, so I would advise against doing this - especially in long bibliography lists.

Following jon's suggestion in the comment below, this might be better. We add more space between the entries (a \quad) and print the label in bold.

\documentclass{article}
\usepackage{lmodern}
\usepackage[firstinits=true,backend=bibtex,doi=false,isbn=false,url=false]{biblatex}
\AtEveryBibitem{%
\clearfield{pages}%
}
\renewcommand{\bibfont}{\normalfont\footnotesize}

\defbibenvironment{bibliography}
{\noindent}
{\unspace}
{\printtext[bold]{%
\printtext[labelnumberwidth]{%
\printfield{labelprefix}%
\printfield{labelnumber}}}%

• Agreed on the 'don't do it part', but, if it is needed, I think using a bigger horizontal space would be better. Something like \finentry\quad will make the start of new entries more obvious. I'd also recommend putting the prefixnumber and labelnumber in bold for the same reason. – jon Oct 26 '13 at 16:50
• @William The success of this method very much depends on the particular situation one is facing. The example entries above, for instance, take up only marginally more space in the standard bibliography setup; while very short entries like your example entries do benefit from the new setup. Could you elaborate on "the spacing between the entries in the bibliography is [...] greater now"? Do you mean line spread or just the space the bibliography takes up? You could use \usepackage{setspace} to reduce the line spread in the bibliography to save some precious space. – moewe Oct 26 '13 at 19:10