Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

PDFLaTeX + hyperref warning

瀏覽次數:330 次
跳到第一則未讀訊息

José Carlos Santos

未讀,
2003年5月4日 凌晨3:54:232003/5/4
收件者:
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

未讀,
2003年5月4日 凌晨4:01:162003/5/4
收件者:
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

未讀,
2003年5月4日 上午11:58:012003/5/4
收件者:
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

未讀,
2003年5月4日 下午2:13:402003/5/4
收件者:
Heiko Oberdiek wrote:

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

Thanks. It worked!

0 則新訊息