Nenhuma inteligência no projetor?

Nenhuma inteligência no projetor?

Estou tentando fazer uma apresentação matemática funcionar e parece que isso cleverefestá causando problemas. O MWE abaixo dá o erro

Paragraph ended before \@ynthm was complete

Na documentação de cleveref, encontra-se a seguinte observação:

A beamerclasse document redefine o \labelcomando de uma maneira particularmente tortuosa que quebra cleverefo argumento opcional do comando.

Que argumento opcional? Isso significa isso cleverefe beamersão simplesmente incompatíveis? Existe alguma maneira de contornar esse problema?

MWE:

\documentclass{beamer}

\makeatletter
\let\th@plain\relax
\makeatother

\usepackage{ntheorem}
\usepackage{cleveref}

\theoremstyle{plain}

\newtheorem{MainThm}{Main Theorem}

\crefname{MainThm}{Main Theorem}{Main Theorems}

\mode<presentation>{\usetheme{Frankfurt}}

\begin{document}
\begin{frame}{Test}
    \begin{MainThm}
        blabla
    \end{MainThm}
\end{frame}
\end{document}

Responder1

cleverefredefinido \labelpara agora receber um argumento opcional que substitui ocleveref tipo. No entanto, se você não usar esse argumento opcional, tudo bem.

Alterne a ordem de carregamento entre cleverefentheorem.

insira a descrição da imagem aqui

\documentclass{beamer}

\let\Tiny\tiny% http://tex.stackexchange.com/q/58087/5764
\makeatletter
\let\th@plain\relax
\makeatother

\usepackage{cleveref}
\usepackage{ntheorem}

\theoremstyle{plain}
\newtheorem{MainThm}{Main Theorem}
\crefname{MainThm}{Main Theorem}{Main Theorems}

\mode<presentation>{\usetheme{Frankfurt}}

\begin{document}

\begin{frame}{Test}
  See~\cref{thm:mytheorem}.
  \begin{MainThm}\label{thm:mytheorem}
    blabla
  \end{MainThm}
\end{frame}

\end{document}

informação relacionada