2

The following MCE shows that a declaration command of setspace as biblatex's \bibsetup gives a spurious blank line at the beginning of the bibliography. Do you know why?

\documentclass{report}
\usepackage{setspace}
\usepackage{biblatex}

\addbibresource{biblatex-examples.bib}
\nocite{knuth:ct:e}

\begin{document}
\printbibliography
%
\renewcommand{\bibsetup}{\singlespacing}%
\printbibliography
\end{document}
3
  • 1
    Unless you want to clear out all of \bibsetup's other settings, it may be better to do \appto\bibsetup{...} instead of \renewcommand*{\bibsetup}{...}.
    – moewe
    May 31 '20 at 23:09
  • @moewe I also checked with \appto but I wanted to be sure anything else could interfere with the behavior I noticed. BTW, is there a way to check what are the \bibsetup's other settings? Jun 1 '20 at 8:25
  • 1
    You can find the initial definition of \bibsetup in biblatex.def, but you can always say \show\bibsetup in your document and get the current definition sent to the log.
    – moewe
    Jun 1 '20 at 9:07
5

The definition of \singlespacing in setspace.sty is

% setspace.sty, line 345:
\newcommand{\singlespacing}{%
  \setstretch {\setspace@singlespace}%  normally 1
  \vskip \baselineskip  % Correction for coming into singlespace
}

which should be self-explanatory. In this case use

\setstretch{1}

instead of \singlespacing.

1
  • In your opinion, is this \vskip \baselineskip what one would expect? Isn't it just a workaround ("Correction for coming into singlespace")? Jun 1 '20 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.