The package setspace
modifies the standard definition of \footnote
so that single spacing is used in the footnote texts. Also hyperref
modifies \footnote
so as to make the hyperlinks.
However, hyperref
is generally agnostic about the definition of the commands it has to redefine for doing its job (there are many): it just takes the current definition and massages it a bit for adding the hyperlinks.
If you load the package setspace
after hyperref
, the modification made by the former overrides the change made by the latter. So the correct way is first loading setspace
and then hyperref
.
There are some packages that should be loaded after hyperref
, you find a big list at Which packages should be loaded after hyperref instead of before? and setspace
doesn't appear there.
\documentclass[11pt]{article}
\usepackage{setspace}
\usepackage{hyperref}
\hypersetup{
colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=blue,%
urlcolor=black
}
%\tolerance=1000 %%% Are you really sure?
\title{temp}
\begin{document}
\maketitle
\tableofcontents
\section{Section 1}
\label{sec-1}
TeX is a computer program for typesetting documents, created by Donald Knuth. It
takes a suitably prepared computer file and converts it to a form which may be
printed on many kinds of printers, including dot-matrix printers, laser printers
and high-resolution typesetting machines. LaTeX is a set of macros for TeX that
aims at reducing the user's task to the sole role of writing the content, LaTeX
taking care of all the formatting process. A number of well-established
publishers now use TeX or LaTeX to typeset books and mathematical journals. It
is also well appreciated by users caring about typography, consistent
formatting, efficient collaborative writing and open formats.
\section{Section 2}
\label{sec-2}
TeX is a computer program for typesetting documents, created by Donald Knuth. It
takes a suitably prepared computer file and converts it to a form which may be
printed on many kinds of printers, including dot-matrix printers, laser printers
and high-resolution typesetting machines. LaTeX is a set of macros for TeX that
aims at reducing the user's task to the sole role of writing the content, LaTeX
taking care of all the formatting process. A number of well-established
publishers now use TeX or LaTeX to typeset books and mathematical journals. It
is also well appreciated by users caring about typography, consistent
formatting, efficient collaborative writing and open formats.
\section{Section 3}
\label{sec-3}
TeX is a computer program for typesetting documents, created by Donald Knuth. It
takes a suitably prepared computer file and converts it to a form which may be
printed on many kinds of printers, including dot-matrix printers, laser printers
and high-resolution typesetting machines. LaTeX is a set of macros for TeX that
aims at reducing the user's task to the sole role of writing the content, LaTeX
taking care of all the formatting process. A number of well-established
publishers now use TeX or LaTeX to typeset books and mathematical journals. It
is also well appreciated by users caring about typography, consistent
formatting, efficient collaborative writing and open formats.
\section{Test footnotes}
\label{sec-4}
This text has a footnote \footnote{See section \ref{sec-1}}
\end{document}
By the way, are you really sure about \tolerance=1000
? It's quite a large value and you'll risk getting wide interword spaces. It's better to do
\usepackage{microtype}
(before loading hyperref
).
Best Answer
Are you using MikTeX as TeX system and TeXnicCenter as editor? Please note that this combination has serious issues when using not-yet-installed packages.
See: http://www.miktex.org/2.9/issues
So either follow the workaround given on the link above, or use a proper (La)TeX editor, like TeXworks (which is part of the MikTeX distribution), TeXmaker(X) etc.
Especially if you are a "noob to LaTeX" I would recommend not to use TeXnicCenter at all, but something like TeXworks instead which simply works out-of-the-box. Just start TeXworks, enter your text, select "pdfLaTeX" in the toolbar and press the green start button.