Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDFLaTeX + hyperref warning

330 views
Skip to first unread message

José Carlos Santos

unread,
May 4, 2003, 3:54:23 AM5/4/03
to
Hi all,

Consider this .tex file:

\documentclass{article}
\usepackage{hyperref}
\begin{document}
a\label{a}
\newpage
\pageref{a}
\end{document}

When I compile it with PDFLaTeX (I use hyperref version 6.72r), I get
the following warning

! pdfTeX warning (dest): name{UNDEFINED} has been referenced but does
not exist
, replaced by a fixed one

What does this mean?

Best regards

Jose Carlos Santos

Josselin Noirel

unread,
May 4, 2003, 4:01:16 AM5/4/03
to
José Carlos Santos , a écrit ceci :

> \documentclass{article}
> \usepackage{hyperref}
> \begin{document}
> a\label{a}
> \newpage
> \pageref{a}
> \end{document}

> When I compile it with PDFLaTeX (I use hyperref version 6.72r), I get
> the following warning

> ! pdfTeX warning (dest): name{UNDEFINED} has been referenced but does
> not exist
> , replaced by a fixed one

> What does this mean?

I cannot reproduce your message error, but it probably means that you
have no counter to which \(page)ref can refer. Try putting a \section or
whatever that makes some counter active before the \label.

-- Josselin

Heiko Oberdiek

unread,
May 4, 2003, 11:58:01 AM5/4/03
to
José Carlos Santos <jcsa...@fc.up.pt> wrote:

> \documentclass{article}
> \usepackage{hyperref}
> \begin{document}
> a\label{a}
> \newpage
> \pageref{a}
> \end{document}
>
> When I compile it with PDFLaTeX (I use hyperref version 6.72r), I get
> the following warning
>
> ! pdfTeX warning (dest): name{UNDEFINED} has been referenced but does
> not exist
> , replaced by a fixed one
>
> What does this mean?

There is no anchor that the \label command can use,
an anchor can be provided by \phantomsection.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

José Carlos Santos

unread,
May 4, 2003, 2:13:40 PM5/4/03
to
Heiko Oberdiek wrote:

> There is no anchor that the \label command can use,
> an anchor can be provided by \phantomsection.

Thanks. It worked!

0 new messages