I'm trying to create a compressed, single-paragraph bibliography using biblatex
, like in this answer. I'd also like to make the font quite a bit smaller than the main font size of the document. I'm doing this by setting \bibfont
; however, this produces something that looks like double spacing, but I only want single spacing. I thought that
\renewcommand*{\bibfont}{\fontsize{5pt}{7pt}\selectfont}
would take care of this because \fontsize
is supposed to also set the \baselineskip
value. Does anyone know why I have such big line spacing in the bibliography, and how can I reduce this spacing to something that just looks like normal single spacing?
\begin{filecontents*}{\jobname.bib}
@article{a1,
author = {Smith, Jane},
journal = {Nature},
volume = {7},
pages = {201--204},
year = {1999},
}
@article{a2,
author = {Smith, Jane},
journal = {Nature},
volume = {7},
pages = {201--204},
year = {2000},
}
@article{a3,
author = {Smith, Jane},
journal = {Nature},
volume = {7},
pages = {201--204},
year = {2001},
}
@article{a4,
author = {Smith, Jane},
journal = {Nature},
volume = {7},
pages = {201--204},
year = {2002},
}
@article{a5,
author = {Smith, Jane},
journal = {Nature},
volume = {7},
pages = {201--204},
year = {2003},
}
\end{filecontents*}
\documentclass{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=authoryear-comp,
maxcitenames=2,
maxnames=1,
minnames=1,
firstinits=true]{biblatex}
\addbibresource{\jobname.bib}
\renewcommand*{\bibfont}{\fontsize{5pt}{7pt}\selectfont}
\defbibenvironment{bibliography}
{}
{}
{\addspace}
\begin{document}
\nocite{*}
\printbibliography
\end{document}