I'm using hyperref
for links in pdflatex
and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional green link frame is visible at the footer and the link links the whole header of the following page.
Code (with the list of all packages I'm using):
\documentclass[a4paper,12pt,oneside]{book}
\synctex=1 % synchronize with texmaker
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[left=3.5cm, right=2cm, top=3.5cm, bottom=2.5cm]{geometry} % sizes
\usepackage{newcent} % font, Century Schoolbook
\usepackage{graphicx} % include graphics
\usepackage{setspace} % control line spacing
\usepackage{amssymb} % math
\usepackage{amsmath} % math
\usepackage{amsthm} % theorems
\usepackage{cite} % numeric citations
\usepackage{epigraph} % quotations
\usepackage{booktabs} % nice looking tables
\usepackage{url} % recognize urls
\usepackage{hyperref} % links in PDF
\usepackage{enumitem} % enhanced enumerations
\usepackage{fancyhdr} % fancy headers and footers
\usepackage{color} % allow colors
\usepackage{pdfpages} % include assignment PDFs
\usepackage{texshade} % sequence alignments
\usepackage{lipsum} % just for the sake of this example
\fancyhead{}
\fancyhead[LO]{\nouppercase{\textsc{\leftmark}}}
\fancyhead[RO]{\nouppercase{\textsc{\thepage}}}
\fancyfoot{}
\setlength{\headheight}{15pt}
\begin{document}
\onehalfspacing
\mainmatter
\pagestyle{fancy}
\chapter{An Example Chapter}
\lipsum
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff
\cite{reference}
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff
\bibliographystyle{apalike}
\bibliography{references}
\end{document}
BibTeX file references.bib
:
@Article{reference,
Author="LongSurnameOfTheFirstAuthor, D. and LongSurnameOfTheSecondAuthor, R. ",
Title="Example text",
Journal="Journal of example articles",
Year="2004",
Volume="21",
Number="12",
Pages="2326--2339",
Month="Dec",
Note={[DOI:\href{http://www.example.com}{example}]}
}
Output:
How can I get rid of this?
I'm using pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) and BibTeX 0.99c (TeX Live 2009/Debian).
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) and BibTeX 0.99c (TeX Live 2009/Debian)
==> How to install “vanilla” TeXLive on Debian or Ubuntu? But it also happens with a freshly updated TeX Live 2011.\cite
is replaced by a long\href
(just the color is different). A side-effect betweenfancyhdr
andhyperref
?fancyhdr
the problem remains. However, it is documented: tug.org/applications/hyperref/ftp/README