用箭头连接 \item 和 \minipage

用箭头连接 \item 和 \minipage

我想使用 TikZ 连接\item投影仪\minipage

这是 MWE

\begin{itemize}
  \item (some text)\\[0.3cm]

          \begin{minipage}{0.4\textwidth}
              \begin{flushleft}
                {some staff}\\
             \centering $\downarrow$ \\{text}
               \end{flushleft}  
           \end{minipage}
            \hfill
            \begin{minipage}{0.4\textwidth}
                \begin{flushright}
                 {some staff}\\
                 \centering $\downarrow$ \\{text}
                 \end{flushright}   
            \end{minipage}
\end{itemize}   

我实际上想要的是一个从\item第一个开始的箭头\minipage,以及另一个从\item另一个开始的箭头\minipage

答案1

我不知道这是否完全符合要求,但很容易\tikzmark

\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{tikzmark,calc}

\begin{document}
\frame{
\begin{itemize}
\item[\tikzmark{fromhere}](some text)\\[0.6cm]
\tikzmark{tohere}
\begin{minipage}{0.4\textwidth}
\begin{flushleft}
{some staff (with some other staff added just to show how the arrows are positioned with respect to the minipage)}\\
\centering $\downarrow$ \\{text}
\end{flushleft}
\end{minipage}
\hfill
\tikzmark{andhere}
\begin{minipage}{0.4\textwidth}
\begin{flushright}
{some staff (with some other staff added just to show how the arrows are positioned with respect to the minipage)}\\
\centering $\downarrow$ \\{text}
\end{flushright}
\end{minipage}
\end{itemize}

\begin{tikzpicture}[remember picture, overlay]
    \draw[->] (pic cs:fromhere) |- (pic cs:tohere);
    \draw[->] (pic cs:fromhere) -- ($(pic cs:fromhere)-(0,4mm)$) -| ($(pic cs:andhere)-(1.75mm,0)$) -- (pic cs:andhere);
\end{tikzpicture}
}
\end{document}

在此处输入图片描述

相关内容