Generalgb4e, beamer and the \pause command

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Stefanie
Posts: 25
Joined: Fri Apr 04, 2008 2:39 pm

gb4e, beamer and the \pause command

Post by Stefanie »

I'm using gb4e for numbered examples, and I noticed an annoying bug. The numbering goes wrong when I use the \pause command in a beamer document. Working example (run with pdflatex):

Code: Select all

\documentclass[a4paper,12pt]{beamer}
\usepackage{gb4e}
\begin{document}
\begin{frame}
\begin{exe}
\ex First example
\end{exe}

\pause

Explanation about first example.

\end{frame}

\end{document}

The first part of the slide is displayed correctly, but when I scroll down to display the second part with the explanation the numbering of the first example changes from 1 to 2. Does anyone know how to fix this behaviour?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefanie
Posts: 25
Joined: Fri Apr 04, 2008 2:39 pm

Re: gb4e, beamer and the \pause command

Post by Stefanie »

People on the Ling-TeX mailing list gave me the answer:

\resetcounteronoverlays{exx}
Post Reply