When I click a link to a word created with the hyperref package, I am directed to the line in the text below the link if the word is in the middle of the line. If I create link to a word which is the first on its line, I am directed to the correct line. Is this the expected behaviour? It definitely isn't optimal. Does anybody know of a workaround, other than making sure that the linked word is the first on a line? Here is an example:
\documentclass{minimal}
\usepackage{lipsum}
\usepackage{color}
\usepackage{hyperref}
\setlength{\parindent}{0pt}
\begin{document}
\lipsum[1]
The target is \hypertarget{target}{\textcolor{red}{here}}.
\lipsum[2]
This is a \hyperlink{target}{\textcolor{blue}{link}}.
\lipsum[3]
\hypertarget{newtarget}{\textcolor{red}{Here}} is a new target.
\lipsum[4]
This is a new \hyperlink{newtarget}{\textcolor{blue}{link}}.
\end{document}