Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beamer theorem syntax not fully supported #57

Open
mbertucci47 opened this issue Dec 15, 2023 · 0 comments
Open

beamer theorem syntax not fully supported #57

mbertucci47 opened this issue Dec 15, 2023 · 0 comments

Comments

@mbertucci47
Copy link
Collaborator

The beamer syntax \begin{theorem}<overlay spec>[heading] is not supported by thmtools while the alternative syntax \begin{theorem}[heading]<overlay spec> is.

\documentclass{beamer}
\setbeamertemplate{theorems}[numbered]
\usepackage{thmtools}

\declaretheorem{MyTheorem}

\begin{document}

\begin{frame}
\begin{MyTheorem}[name=bla]
first text
\end{MyTheorem}
\begin{MyTheorem}<2->[name=bla]
second text
\end{MyTheorem}
\begin{MyTheorem}[name=bla]<3->
third text
\end{MyTheorem}
\end{frame}

% Compare:

\begin{frame}
\begin{theorem}[bla]
first text
\end{theorem}
\begin{theorem}<2->[bla]
second text
\end{theorem}
\begin{theorem}[bla]<3->
third text
\end{theorem}
\end{frame}

\end{document}
beamer-ex

It's confusing to me that the heading/options are silently ignored in the <2->[name=bla] example, which makes me think that thmtools' intention is to support this syntax, but something is going awry in the code. I haven't spent the time to understand parseargs so I can't debug the definition of \thmt@parsetheoremargs at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant