Re: Figure in successione beamer

#88478
Up
0
Down
::

cfiandra” post=87967Ecco un’idea a scopo dimostrativo: `\documentclass{beamer}
\usepackage{lmodern}
\usepackage{mwe} % for dummy images

\usepackage{xparse}

\usepackage{tikz}

\tikzset{
invisible/.style={opacity=0,text opacity=0},
visible on/.style={alt=#1{}{invisible}},
alt/.code args={<#1>#2#3}{%
\alt<#1>{\pgfkeysalso{#2}}{\pgfkeysalso{#3}}
},
}

\tikzset{
background draw/.style={draw=#1},
background draw/.default={white},
draw on/.style={alt=#1{}{background draw}},
}

\NewDocumentCommand{\smalloverlayedinclude}{r<> O{scale=0.15} m}{%
\tikz\node[background draw=red,ultra thick,draw on=<{#1}>,inner sep=0pt]{\includegraphics[#2]{#3}};
}

\begin{document}

\begin{frame}{Titolo}
\begin{center}
\includegraphics<1>[scale=0.5]{example-image}
\includegraphics<2>[scale=0.5]{example-image-a}
\includegraphics<3>[scale=0.5]{example-image-b}
\includegraphics<4>[scale=0.5]{example-image-c}
\end{center}
\vfill
\begin{center}
\smalloverlayedinclude<1>{example-image}\,
\smalloverlayedinclude<2>{example-image-a}\,
\smalloverlayedinclude<3>{example-image-b}\,
\smalloverlayedinclude<4>{example-image-c}\,
\end{center}

\end{frame}

\end{document}
` Il risultato:

[attachment=779]prova_beamer_tema.gif[/attachment]

Ciao
Claudio

Grazie! Non ci sarei mai riuscito con quest’eleganza 🙁

Ciao

Go to top