GeneralFootnote links in PDFLatex

LaTeX specific issues not fitting into one of the other forums of this category.
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Footnote links in PDFLatex

Post by curiouslearn »

Hi gmedina,

The problems is occurring because of package setspace. If I take out setspace then the footnote links work fine. This, however, creates a new (bigger) problem; the footnotes are not single spaced when the rest of the document is double spaced. Does anyone know how to make footnotes single spaced when rest of the document is double spaced without using packages setspace or doublespace.

Thanks for your help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Footnote links in PDFLatex

Post by gmedina »

Hi curiouslearn,

That is weird. Try the following example. It works OK for me. If you experience some problems with this example, then add \listfiles before \documentclass[12pt]{article} process the document and post the section *File List* of the .log generated file.

Code: Select all

\documentclass[12pt]{article}%

\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{harvard}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{blindtext}
\usepackage{setspace}%
\doublespacing
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=black}

\begin{document}

\blindtext
\begin{spacing}{1}
\begin{align}
  a &= b\\
  c &= d
\end{align}
\end{spacing}

\blindtext\footnote{This is the first footnote}
\blindtext\footnote{This is second footnote}
\blindtext\footnote{This is the third footnote}

\end{document}
Notice how to restore the single spacing for your mathematical formulae using the commands provided by the setspace package.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Footnote links in PDFLatex

Post by curiouslearn »

gmedina,

I tried the solution you suggested. However, it did not work. I asked another friend of mine whether he was aware of a way out. He suggested the following command which works pretty well and does not require use of setspace package.

{\setlength{\baselineskip}{2\baselineskip} Text of the para including foonotes ...basically whatever you type in the paper \par}

Whatever is in the curly braces is double spaced (except the footnotes). The footnote links work well with this solution.

The funny thing though is that you do not have the problem I and my friend had with setspace. Maybe it has to something to do with the operating sys. Mine is Win XP.

Thanks again for the suggestions.
machine^r
Posts: 1
Joined: Fri Sep 24, 2010 11:01 pm

Re: Footnote links in PDFLatex

Post by machine^r »

I had the same problem and was also using the packages setspace and hyperref. I just changed the order in which these packages are included so hyperref goes after setspace and that solved it for me. Thanks gmedina.
Post Reply