In one of my documents, I used the combination of \label with \hyperref. Now, I fail for some reason.
I included the package:
\usepackage[colorlinks=true,urlcolor=blue,linkcolor=blue]{hyperref}
Created a label somewhere in my text:
\label{key1}
And referenced it from the text:
\hyperref[key1]{there}
But xelatex gives me this:
Package hyperref Warning: Empty destination name,
(hyperref) using `UNDEFINED' on input line 66.
What am I doing wrong?
EDIT: Minimal working example:
\documentclass[a4paper, 12pt]{article}
\usepackage{xltxtra}
\usepackage[colorlinks=true,urlcolor=blue,linkcolor=blue]{hyperref}
\begin{document}
Some text. \label{key1} Continuing.
Some more text (\hyperref[key1]{goto}).
\end{document}
This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9) (preloaded format=xelatex 2011.12.21) 23 APR 2012 13:55 entering extended mode. Looks like you have to update your distro. – Apr 23 '12 at 08:25texlive. Please see Martin's answer to best-way-to-install-packages-for-texlive-in-ubuntu- you don't need to build the deb packages yourself,texlive 2011comes with very easy executables that do all of the work – cmhughes Apr 23 '12 at 08:59\hypertargetand\hyperlinkmight be better for this application. – egreg Apr 23 '12 at 09:32