[Tex/LaTex] Making bibliography single spaced without setspace package

bibliographiesline-spacing

I am writing my thesis and I would like the Bibliography to be single spaced.

I've read about using the \singlespace command, but I think this requires using the setspace package which I don't want to do, because this makes all my figure captions single spaced (which I don't want).

I am using \renewcommand{\baselinestretch}{2.1} in my preamble to set the spacing for the document.

I am just using the default bibliography settings. So I'm just using:

\bibliographystyle{unsrt}

\bibliography{refs}

to make my bibliography. Is there a command I can put here to make it single spaced?

Alternatively, if anyone can tell me how to retain double spaced figure captions with setspace that would also work!

Thank you!

Best Answer

As a side note, I would use

\linespread{2.1}\selectfont

instead of

\renewcommand{\baselinestretch}{2.1}

in the preamble.

To answer your question, load the package etoolbox and insert the following line in your preamble

\AtBeginEnvironment{thebibliography}{\linespread{1}\selectfont}

This will change the line spread to 1 as soon as the bibliography starts.

MWE

\begin{filecontents*}{refs.bib}
@article{someguykey2010,
author="SomeGuy",
title="A journal article",
year=2010,
journal="A Journal",
}
@article{someotherguykey2013,
author="SomeOtherGuy",
title="A journal article",
year=2013,
journal="A Journal",
}
\end{filecontents*}

\documentclass{article}

\usepackage{etoolbox}
\AtBeginEnvironment{thebibliography}{\linespread{1}\selectfont}

\usepackage{lipsum} %just for dummy text


\begin{document}

\linespread{2.1}\selectfont

\lipsum[1]

\nocite{*}

\bibliographystyle{plainnat}
\bibliography{refs}

\end{document} 

Output

enter image description here

If you don't want to load etoolbox, simply issue

\linespread{1}\selectfont

before your bibliography.