投影仪中列表和图片之间的箭头

投影仪中列表和图片之间的箭头

如何使用 tikz 在环境中的项目itemize和图片上的点之间绘制箭头?

梅威瑟:

\documentclass{beamer}
%\usepackage{beamerthemeshadow}
\setbeamercovered{transparent}

\begin{document}
\section{section}
\begin{frame}
 \frametitle{frame title}

 \begin{columns}
 \column{.4\textwidth}
    \begin{block}{block title}
          \begin{itemize}
        \item <1-> stone
        \item <2-> more stones
        \item <3-> water
      \end{itemize}
    \end{block}
  \column{.6\textwidth}
      \begin{figure}[h]
    \includegraphics[width=\textwidth]{25}%
    \caption{Landscape}
      \end{figure}
  \end{columns}

\end{frame}
\end{document}

我想要实现这样的目标:

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

答案1

我找到的解决方案:

\documentclass{beamer}
\usepackage{beamerthemeshadow}
\setbeamercovered{transparent}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,backgrounds}

\begin{document}
\tikzstyle{every picture}+=[remember picture]
\tikzstyle{na} = [baseline=-.5ex]
\section{section}
\begin{frame}
 \frametitle{frame title}

 \begin{columns}
   \begin{column}{.4\textwidth}
    \begin{block}{block title}<1-5>
          \begin{itemize}
        \item <1-| alert@2> stone\,\tikz[na] \coordinate (Lstone);
        \item <1-| alert@3> more stones\,\tikz[na] \coordinate (Lmorestones);
        \item <1-| alert@4> water\,\tikz[na] \coordinate (Lwater);
      \end{itemize}
    \end{block}
     \end{column}
    \begin{column}{.6\textwidth}
      %\begin{figure}[h]
    \begin{tikzpicture} 
            \node [inner sep=0pt,above right]{
    \includegraphics[width=\textwidth]{25}%
    };
    \path (1.45,1.1) coordinate (stone);
    \path (3.45,1.1) coordinate (morestone);
    \path (3.5,2.6) coordinate (water);
    \end{tikzpicture}
     % \end{figure}
     \end{column}
  \end{columns}

  \begin{tikzpicture}[overlay]
        \draw<2> [thin, red,opacity=.8, fill=red,fill opacity=0.3](stone) circle (4pt);
        \path<2>[->,>=latex', red, shorten >=4pt, opacity=.6] (Lstone) edge [out=0, in=130] (stone);

        \draw<3> [thin, red,opacity=.8, fill=red,fill opacity=0.3](morestone) circle (4pt);
        \path<3>[->, >=latex', red, shorten >=4pt, opacity=.6] (Lmorestones) edge [out=0, in=150] (morestone);

        \draw<4> [thin, red,opacity=.8, fill=red,fill opacity=0.3](water) circle (4pt);
        \path<4>[->,>=latex',red, shorten >=4pt, opacity=.6] (Lwater) edge [out=0, in=200] (water);

\end{tikzpicture}

\end{frame}
\end{document}

为了变得更加优雅,我必须解决一些问题:设置与图片相关的节点;目前,如果我更改图片大小,我将不得不重新协调节点。我不喜欢箭头的“缩短解决方案”,因为如果我更改圆的直径,我必须手动更改值。

相关内容