如何在项目化环境中将注释放在图像后面?

如何在项目化环境中将注释放在图像后面?

问题如何在项目化环境中插入全屏图片?,我能够将图像插入到项目化环境中。现在我想使用\note选项在幻灯片上添加注释,并将其添加到插入tikzpicture环境的图像之后(见下文)。可以吗?

\documentclass[10pt]{beamer}
\usetheme{Szeged}
\usecolortheme{dolphin}

\usepackage{fontspec}
\usepackage{pgf}
\usepackage{tikz}

\setbeamercovered{transparent=25}   %Uncover text transparently
\setbeameroption{show notes}

\begin{document}

    \begin{frame}
        \begin{itemize}
            \item<1> first item
                \note<1>{some comments on first item}
            \item<3> second item
                \note<3>{some comments on second item}
            \item<4> third item
                \note<4>{some comments on third item}
        \end{itemize}
         \only<2>{
            \begin{tikzpicture}[remember picture,overlay]
             \fill [black] (current page.south west) rectangle (current page.north east);
             \node at (current page.center) {\includegraphics[scale=0.5]{testPicture}};
            \end{tikzpicture}
         }
         %\note<2>{some notes on picture 1}    this does not have the expected result...       

   \end{frame}
\end{document}

答案1

为了[remember picture,overlay]正常工作,您必须运行两次才能正确运行。那么我猜这就是您正在寻找的预期行为。

\documentclass[10pt]{beamer}
\usetheme{Szeged}
\usecolortheme{dolphin}

\usepackage{fontspec}
\usepackage{mwe} % <--- For the dummy image
\usepackage{tikz}

\setbeamercovered{transparent=25}   %Uncover text transparently
\setbeameroption{show notes}

\begin{document}

    \begin{frame}
        \begin{itemize}
            \item<1> first item
                \note<1>{some comments on first item}
            \item<3> second item
                \note<3>{some comments on second item}
            \item<4> third item
                \note<4>{some comments on third item}
        \end{itemize}
         \only<2>{
            \begin{tikzpicture}[remember picture,overlay]
             \fill [black] (current page.south west) rectangle (current page.north east);
             \node at (current page.center) {\includegraphics[scale=0.5]{example-image-a}};
            \end{tikzpicture}
         }
        \note<2>{some notes on picture 1}%this does not have the expected result...       
   \end{frame}
\end{document}

在此处输入图片描述

相关内容