Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The MWE below produces the following message in the log:

Package hyperref Info: bookmark level for unknown thm defaults to 0 on input line 12

How can I prevent this?

\documentclass{article}

\usepackage{amsmath}
\usepackage[amsmath,hyperref]{ntheorem}

\newtheorem{thm}{Theorem}

\usepackage{hyperref}

\begin{document}
  \begin{thm}
    $1+1=2$
  \end{thm}

  \begin{thm}
    $1-1=0$
  \end{thm}
\end{document}

Note that the message does not appear for the second theorem. So I suppose it has something to do with intialisation ...

PS: If anyone thinks the theorems tag is inappropriate, feel free to delete it!

share|improve this question
    
It's an unharmful information message. –  egreg Aug 30 '12 at 17:06

1 Answer 1

up vote 3 down vote accepted

Solution: Add the lines marked by %% <--- in the following code sample:

\documentclass{article}

\usepackage{amsmath}
\usepackage[amsmath,hyperref]{ntheorem}

\newtheorem{thm}{Theorem}

\makeatletter                           %% <---
\providecommand*{\toclevel@thm}{0}%     %% <---
\makeatother                            %% <---

\usepackage{hyperref}

\begin{document}
  \begin{thm}
    $1+1=2$
  \end{thm}

  \begin{thm}
    $1-1=0$
  \end{thm}
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.