josephwright / josephwright/beamer

dvisvgm backend: issues with beamer standard animations/transitions (\pause)

Open
#591 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
1.7k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

Hi!
I am trying to translate some PDf slides (LaTeX beamer) to svg to get advantage of the \animate package without needing a non-free PDF viewer. However, I am having some issues with standard beamer animations when using the dvisvgm backend, in different scenarios.
This is a simple example that does not work as expected when generating the SVG:

\documentclass[dvisvgm,aspectratio=169]{beamer}
\setbeamertemplate{navigation symbols}{}

\begin{document}

\begin{frame}
  \begin{itemize}
  \item 1
    \pause

  \item 2
    \pause

  \item 3
    \begin{block}{foo bar}
      foo bar
    \end{block}
  \end{itemize}
\end{frame}

\end{document}

After latex example.tex; latex example.tex; dvisvgm --font-format=woff --zoom=-1 -p1,- example.dvi three SVG files are generated, but the beamer block is visible in all of them instead of only in the last one.

I am using LaTeX-2020 and dvisvgm 2.9.1

Regards,
E

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the provided example.tex using two LaTeX runs followed by the dvisvgm command, then inspect the generated SVG files for the three overlays. Trace how beamer's \pause and block content are represented for the dvisvgm backend; done means the block appears only in the final SVG, as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.