latex3 / pdfresources

LaTeX PDF resource management
LaTeX Project Public License v1.3c
22 stars 5 forks source link

the \transwipe command no longer seems to accept optional arguments #29

Closed numaxx21 closed 7 months ago

numaxx21 commented 2 years ago
\RequirePackage{pdfmanagement-testphase}%
\DocumentMetadata{} % activate the PDF management (with options)
\documentclass{beamer}

\setbeamertemplate{background}[grid]
\begin{document}
\begin{frame}
%\transwipe[direction=0]
\transwipe[duration=3]
%\transwipe 
\end{frame} 
\end{document}

This code with \transwipe[duration=3] don't works but with \transwipe, it works.

u-fischer commented 2 years ago

The new hyperref driver used with the pdfmanagement has extended support for transitions. There are now more keys to set them. But this lead to a different syntax and so beamer will need adjustments here to correctly translate its options. You can set transitions with hypersetup

  \hypersetup{pdfpagetransition={style=Fly,duration=2,direction=90,opaque=false}}

Your example would need probably

 \hypersetup{pdfpagetransition={style=Wipe,duration=3}}
u-fischer commented 2 years ago

I opened a pull request for beamer https://github.com/josephwright/beamer/pull/765. While testing this I found also a small typo in the pdfresource, which breaks some of the transitions, the next version will resolve this.