Issue #129 invalid

custom theorems fail in combination with hyperref in article mode

rlp
created an issue

The bug have been reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572804 I repeat it here.


Package: latex-beamer Version: 3.07-2 Severity: normal

Hi!

The following latex file fails to compile with both latex and pdflatex:

\documentclass{article}

%fails \usepackage{beamerarticle} \usepackage{hyperref}

%works %\usepackage[noamsthm]{beamerarticle} %\usepackage{hyperref}

%works %\usepackage[noamsthm]{beamerarticle} %\usepackage{amsthm} %\usepackage{hyperref}

%works %\usepackage{amsthm} %\usepackage{hyperref}

%works %\usepackage{beamerarticle}

\newtheorem{Def}{Definition}

\begin{document}

\begin{Def} We claim that all problems we ever want to solve can be written in the form \end{Def}

\end{document}

The error message with latex goes something like

hyperref using default driver hdvips (/usr/share/texmf-texlive/tex/latex/hyperref/hdvips.def (/usr/share/texmf-texlive/tex/latex/hyperref/pdfmark.def)) (./test.aux) (/usr/share/texmf-texlive/tex/latex/translator/translator-theorem-dictionary-English.dict) (/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty (/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./test.out) (./test.out)

Package hyperref Warning: Rerun to get /PageLabels entry.

! Undefined control sequence. \@begintheorem ->\beamer@storeaction \beamer@origbegintheorem l.28 W e claim that all problems we ever want to solve can be written in the ... ======================================================================

With pdflatex I get something very similar:

hyperref using default driver hpdftex (/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def) (./test.aux) (/usr/share/texmf/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] ) (/usr/share/texmf-texlive/tex/latex/translator/translator-theorem-dictionary-English.dict) (/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty (/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./test.out) (./test.out) ! Undefined control sequence. \@begintheorem ->\beamer@storeaction \beamer@origbegintheorem l.28 W e claim that all problems we ever want to solve can be written in the ... ======================================================================

I included some alternate \usepackage-lines in the testcase as comments, these all work in the sense that latex finishes successfully (I didn't check whether they actually produce the desired output in complex situations).

Thanks, Jö.

Comments (1)

  1. Log in to comment