[texhax] ntheorem and hyperref

kyanh kyanh at o2.pl
Thu Dec 8 03:23:33 CET 2005


Hi all,

I tested ntheorem package with hyperref package, like this:

[code]
\documentclass{article}

\usepackage{hyperref}
\usepackage[standard,thref,hyperref]{ntheorem}

\begin{document}

\section{This is a test}
\begin{Theorem}
\label{thmtest}
this is only a test
\end{Theorem}

See \thref{thmtest}. % should return `See Theorem 1'
\end{document}
[/code]

The purpose of `thref' option (ntheorem) is to procedure:
 `See Theorem 1'

Drop using `hyperref' package and `hyperref' option works.
But within the `hyperref'  package (like above), the result is incorrectly:
 `See 1This is a testTheorem1.'

Reading the code I see that the `\newlabel', `\label' of `hyperref' package 
was used instead the ones provided by `ntheorem' package.
(`ntheorem' designs `\label' to read the optional argument like this:
  \label{test}[category]
Using `hyperref' package, the optional part `[category]' will be ingore)

Is there anyone who  experiences this problem? 

Are there any alternatives?

Thank you very much for reading and replies.

Best regards,


-- 
kyanh



More information about the texhax mailing list