I type this footnote
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{setspace}
\usepackage{babel}
\begin{document}
\begin{doublespace}
Hi \footnote{\begin{singlespace}
Footnote content.
\end{singlespace}
}
\end{doublespace}
\end{document}
Then I get that weird space when I convert this to pdf. This is probably because my main text is double-spaced and footnote is single-spaced. But I want to keep it that way. How can I remove that weird space in footnote?


setspacethe footnotes are single-spaced anyway, so you don't need\begin{singlespace}...\end{singlespace}. Just try it. I usually find it easier to loadsetspaceas\usepackage[doublespacing]{setspace}rather than wrapping everything in\begin{doublespace}...\end{doublespace}. – moewe Aug 08 '20 at 06:24\begin{singlespace}...\end{singlespace}does some adjustments with\baselineskipspaces at\begin{singlespace}. That causes the unwanted space here. – moewe Aug 08 '20 at 06:28LaTeX Error: Option clash for package setspacehappen? – user1849133 Aug 08 '20 at 07:15setspaceoption clash if you loadsetspacetwice. In your real document there may be other packages or classes that loadsetspacefor you. (Or you load it twice in your preamble.) Impossible to say without seeing the document that reproduces the error. – moewe Aug 08 '20 at 07:21