Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Problem

I have various footnotes, which are hyperlinked from the text to the bottom of their respective pages. When I click on the hyperlinks (in the main text), they always take me to the first page of my document. I also have footnotebackref which puts a hyperlink at the footnote to take the reader back to the main body of text and these links for fine.

Edited MWE

After a lot of deletion, I have managed to reduce the document to the following lines. One might say that I have found the problem, since the removal of \usepackage[hang, flushmargin]{footmisc} stops the problem, but I would still like to have non-indented footnotes.

\documentclass{article}

\usepackage[usenames,dvipsnames]{color}
\usepackage[colorlinks=true]{hyperref}

\usepackage[hang, flushmargin]{footmisc}         %Problem line.
\usepackage{footnotebackref}

\begin{document}
\tableofcontents            
\newpage                
\section{Section}
This is some text\footnote{This is a footnote.}.
\end{document}
share|improve this question
1  
Not an uncommon problem, but there could be a few different causes. Post a complete minimal example that demonstrates the problem (something that starts with \documentclass and ends with \end{document}). There is no way each of the 100 lines of your preamble are an integral part of the problem you are describing; at the same time, clearly your call to hyperref` is part of the current problem and will be part of the solution as well. –  jon Sep 15 '12 at 15:50
    
Thanks for the advice. I've added a MWE. –  User 17670 Sep 15 '12 at 16:35
    
Managed to narrow the problem down significantly. Is there an incompatibility between footmisc another package I'm using? –  User 17670 Sep 15 '12 at 18:53
4  
Quoting footmisc's manual: “The hyperref package has ambitions to make hyperlinks from footnote marks to the corresponding footnote body; naturally this causes grief to footmisc, and unfortunately no remedy is currently known. If you use footmisc, suppress hyperref's hyperfootnotes, by loading it as: \usepackage[hyperfootnotes=false,...]{hyperref} Further work on the interaction between the two packages is proposed, but not yet scheduled.” –  cgnieder Sep 15 '12 at 19:05
    
Thank you for the response. In that case, I will have to do without one or the other, or perhaps a workaround. P.s. if you want to add your comment as an answer, I will gladly accept it. –  User 17670 Sep 15 '12 at 19:12

1 Answer 1

up vote 10 down vote accepted

In a comment to the question I quoted footmisc's manual:

The hyperref package has ambitions to make hyperlinks from footnote marks to the corresponding footnote body; naturally this causes grief to footmisc, and unfortunately no remedy is currently known. If you use footmisc, suppress hyperref's hyperfootnotes, by loading it as: \usepackage[hyperfootnotes=false,...]{hyperref} Further work on the interaction between the two packages is proposed, but not yet scheduled.

So it is to be expected that things might not be working the way one wishes. However, the problems in the MWE can simply be solved by changing the package loading order:

\documentclass{article}

\usepackage[hang, flushmargin]{footmisc}
\usepackage[colorlinks=true]{hyperref}
\usepackage{footnotebackref}

\begin{document}
\tableofcontents            
\newpage                
\section{Section}
This is some text\footnote{This is a footnote.}.

\newpage\null% to see that the hyperlink works
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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