동일한 환경에 이미지와 애니메이션 포함

동일한 환경에 이미지와 애니메이션 포함

내 비머 프레젠테이션에는 패키지를 사용하여 애니메이션으로 만들고 싶은 이미지 3개와 병합된 PDF가 있습니다 animate. 설정은 다음과 같습니다. 세 개의 이미지가 나란히 나열되어 있으며 세 번째 이미지를 애니메이션으로 대체하고 싶습니다. 즉, 첫 번째 슬라이드에서는 세 개의 이미지가 서로 옆에 있도록 하고, 두 번째 슬라이드에서는 왼쪽 두 개의 이미지를 애니메이션 옆에 두기를 원합니다(따라서 애니메이션이 세 번째 이미지를 대체합니다).

여기 사진이 있습니다:

여기에 이미지 설명을 입력하세요

다음은 내가 시도한 작업을 보여주는 MWE입니다.

\documentclass[8pt]{beamer}

\usetheme{Luebeck}
\usefonttheme{serif}
\setbeamertemplate{itemize item}{\color{black} $\vcenter{\hbox{\tiny$\bullet$}}$} %style of item
\setbeamertemplate{footline}[frame number]{}
\setbeamertemplate{navigation symbols}{}

\usepackage{xcolor}
\usepackage{graphicx}
\setlength{\parskip}{0.75em}
\usepackage{animate}
\usepackage{tikzsymbols}

\begin{document}

\begin{frame}

\begin{figure}
    \centering
    \includegraphics<1->[width = 0.33\textwidth]{cont_lasso.pdf}
    \includegraphics<1->[width = 0.33\textwidth]{cont_ridge.pdf}
    \includegraphics<1>[width = 0.33\textwidth]{cont_enet.pdf}
    \animategraphics<2>[autoplay, loop, width = 0.33\textwidth]{30}{enet_ani_merged}{}{}
\end{figure}

The \textit{shape} of the penalty can give some idea of the type of shrinkage imposed on the model.
\begin{itemize}
    \item Sharp corners $\to$ sparsity! \Laughey[1.5][yellow][pink]
    \item Round corners $\to$ only shrinkage!
\end{itemize}

\end{frame}

\end{document}

세 이미지의 파일명은 cont_lasso.pdf, cont_ridge.pdf, 이고 cont_enet.pdf, 애니메이션용으로 병합된 PDF의 이름은 입니다 enet_ani_merged.pdf.

편집하다

설명을 위해 두 번째 슬라이드를 시작할 때 애니메이션이 자동으로 재생되도록 만들고 싶습니다.

몇 가지 실험을 해본 결과 내 문제는 오버레이 때문이 아니라 환경 animategraphics내부에 명령을 넣는 것이 허용되지 않기 때문인 것 같습니다 . figure이제 저는 두 개의 그래픽과 애니메이션을 동일한 환경에 어떻게 배치할 수 있는지 알고 싶습니다.

답변1

설명을 마치고 leandriis최종 출력이 어떻게 보이는지 보고 싶은 사람을 위한 코드는 다음과 같습니다. noframenumbering프레임 번호가 변경되지 않도록 추가해야 했습니다 .

\documentclass[8pt]{beamer}

\usetheme{Luebeck}
\usefonttheme{serif}
\setbeamertemplate{itemize item}{\color{black} $\vcenter{\hbox{\tiny$\bullet$}}$} %style of item
\setbeamertemplate{footline}[frame number]{}
\setbeamertemplate{navigation symbols}{}

\usepackage{xcolor}
\usepackage{graphicx}
\setlength{\parskip}{0.75em}
\usepackage{animate}
\usepackage{tikzsymbols}

\begin{document}

\begin{frame}{Contour plots}

\begin{figure}
    \centering
    \includegraphics[width = 0.33\textwidth]{cont_lasso.pdf}
    \includegraphics[width = 0.33\textwidth]{cont_ridge.pdf}
    \includegraphics[width = 0.33\textwidth]{cont_enet.pdf}
    %\animategraphics[autoplay, loop, width = 0.33\textwidth]{30}{enet_ani_merged}{}{}
\end{figure}

The \textit{shape} of the penalty can give some idea of the type of shrinkage imposed on the model.
\begin{itemize}
    \item Sharp corners $\to$ sparsity! \Laughey[1.5][yellow][pink]
    \item Round corners $\to$ only shrinkage!
\end{itemize}

\end{frame}

\begin{frame}[noframenumbering]{Contour plots}

\begin{figure}
    \centering
    \includegraphics[width = 0.33\textwidth]{cont_lasso.pdf}
    \includegraphics[width = 0.33\textwidth]{cont_ridge.pdf}
    %\includegraphics[width = 0.33\textwidth]{cont_enet.pdf}
    \animategraphics[autoplay, loop, width = 0.33\textwidth]{30}{enet_ani_merged}{}{}
\end{figure}

The \textit{shape} of the penalty can give some idea of the type of shrinkage imposed on the model.
\begin{itemize}
    \item Sharp corners $\to$ sparsity! \Laughey[1.5][yellow][pink]
    \item Round corners $\to$ only shrinkage!
\end{itemize}

\end{frame}

\end{document}

다음은 출력의 스크린샷입니다(PDF를 화면 녹화하는 방법을 찾을 수 없습니다. 오른쪽 그림은 움직이는 것을 의미합니다).

여기에 이미지 설명을 입력하세요

관련 정보