============================================================
Minimal example:
--------------------------------
\documentclass{book}
\listfiles
\usepackage[debug]{hyperref}
\usepackage[noconfig,thref,hyperref]{ntheorem}
\newtheorem{theorem}{Theorem}
\begin{document}
\chapter{My Chapter}
\begin{theorem}[My Theorem] \label{th}
That's my theorem.
\end{theorem}
Extendend citation using \thref{th}
does't work, \ref{th} does.
\end{document}
============================================================
Normally, the \thref command should create a link labeled "Theorem 1"
here, but instead it creates a link labeled "1My Chaptertheorem.1":
============================================================
DVI/PDF output in ASCII art:
--------------------------------
Chapter 1
My Chapter
Theorem 1 (My Theorem) That's my theorem.
Extendend citation using <link>1My Chaptertheorem.1</link>
does't work, <link>1</link> does.
============================================================
I can't figure out, what's wrong with my tex file. If I understand the
ntheorem docs correct, I only have to ensure a ntheorem version greater
1.17 (see versions below) and use the [hyperref] option.
============================================================
LaTeX output:
--------------------------------
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
entering extended mode
(main.tex
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for english, french, german,
ngerman, uk
english, dumylang, nohyphenation, loaded.
(C:\Programme\texmf\tex\latex\base\book.cls
Document Class: book 2004/02/16 v1.4f Standard LaTeX document class
(C:\Programme\texmf\tex\latex\base\bk10.clo))
(C:\Programme\texmf\tex\latex\hyperref\hyperref.sty
(C:\Programme\texmf\tex\latex\graphics\keyval.sty)
(C:\Programme\texmf\tex\latex\hyperref\pd1enc.def)
(C:\Programme\texmf\tex\latex\00miktex\hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(C:\Programme\texmf\tex\latex\ltxmisc\url.sty))
*hyperref using default driver hypertex*
(C:\Programme\texmf\tex\latex\hyperref\hypertex.def)
(C:\Programme\texmf\tex\latex\ntheorem\ntheorem.sty
Style `ntheorem', Version 1.203 <2002/01/07>
) (main.aux) (C:\Programme\texmf\tex\latex\hyperref\nameref.sty)
Chapter 1.
pdftex: bookmark at 9: {1} {\numberline{1}My Chapter}
{chapter.1}{0}{toc}
pdftex: bookmark at 10: {1} {{Theorem}{1}{My Theorem}}
{theorem.1}{0}{thm}
[1] (main.aux)
*File List*
book.cls 2004/02/16 v1.4f Standard LaTeX document class
bk10.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
hyperref.sty 2003/11/30 v6.74m Hypertext links for LaTeX
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
pd1enc.def 2003/11/30 v6.74m Hyperref: PDFDocEncoding definition
(HO)
hyperref.cfg 2003/03/08 v1.0 MiKTeX 'hyperref' configuration
url.sty 2004/03/15 ver 3.1 Verb mode for urls, etc.
hypertex.def 2003/11/30 v6.74m Hyperref driver for HyperTeX specials
ntheorem.sty 2002/01/07 1.203
nameref.sty 2003/12/03 v2.21 Cross-referencing by name of section
***********
)
Output written on main.dvi (1 page, 820 bytes).
Transcript written on main.log.
============================================================
Can someone please enlighten me? I'm sure it's my fault, but I'm
lost...
Andreas
--
For my valid e-mail address, please remove
"see-signature-for-valid-address." and ".invalid".
> I want to use ntheorem's thref feature together with hyperref but the
> link text --created when referring to a theorem using \thref-- is
Seit dem 22.3.5 hat sich da nichts geaendert:
Message-ID: <d1nolp$kct$1...@news.BelWue.DE>
Viele Gruesse
Heiko <ober...@uni-freiburg.de>
> I want to use ntheorem's thref feature together with hyperref but the
> link text --created when referring to a theorem using \thref-- is
> wrong. Both DVI (using latex) and PDF (using pdflatex) outputs are
> affected.
Nothing has changed since 2005/03/22:
Message-ID: <d1nolp$kct$1...@news.BelWue.DE>
Yours sincerely
Heiko <ober...@uni-freiburg.de>
I see. I think I already read this thread but didn't realize that the
two problems are so closely related. (Having it read again, it's more
obvious.). I expected the error to be my fault since it's not mentioned
in ntheorem's documentation (although it gives advice how to work with
hyperref).
So, I either have to set hyperref aside or not use thref.
Thank's for your help,
Andreas.