以下是我目前得到的信息:
\begin{frame}
\frametitle{Nazewnictwo}
\tikzstyle{na} = [baseline=-.5ex]
\large
\[
\tikz[baseline]{\node[fill=blue!20,anchor=base] (t1){\Huge{$a$}};}
\tikz[baseline]{\node[fill=red!20,anchor=base ] (t2){\Huge{$^n$}};}
\]
\begin{itemize}
\item[]<2-> \tikz\node [fill=blue!50,draw,circle] (n1) {}; podstawa
\item[]<3-> \tikz\node [fill=red!50,draw,circle] (n2) {}; wykładnik
\end{itemize}
\begin{tikzpicture}[overlay]
\path<4->[blue,->] (n1.north) edge [out= 60, in= 135] (t1.north west);
\path<5>[red,->] (n2.south) edge [out=-70, in=-110] (t2.south);
\end{tikzpicture}
\end{frame}
看起来像这样:
这就是我想要的:
有什么方法可以让我让箭头直接指向指数,并且突出显示的红色矩形足够小,如第二张图所示?
答案1
您无需将节点写成上标来使其看起来像上标。数学字体大小命令\scriptstyle
实际上会和\displaystyle,\scriptscriptstyle
etc一起为您完成此操作。
你也可以将物品磁盘作为\item
宏的参数。最后,你需要记住这些图片。
\documentclass{beamer}
\usepackage{tikz,lmodern}
\tikzstyle{na} = [baseline=-.5ex,remember picture]
\begin{document}
\begin{frame}{Nazewnictwo}
\large
\[
\tikz[baseline,remember picture]{
\node[fill=blue!20,anchor=base] (t1){\Huge{$a$}};
\node[fill=red!20,anchor=west] at (t1.north east) (t2){\Huge{$\scriptstyle n$}};
}
\]
\begin{itemize}
\item[{\tikz[na]{\node [fill=blue!50,draw,circle] (n1) {};}}]<2-> podstawa
\item[{\tikz[na]{\node [fill=red!50,draw,circle ] (n2) {};}}]<3-> wykładnik
\end{itemize}
\begin{tikzpicture}[remember picture,overlay]
\path<4->[blue,->] (n1.north) edge [out= 60, in= 135] (t1.north west);
\path<5>[red,->] (n2.south) edge [out=-70, in=-110] (t2.south);
\end{tikzpicture}
\end{frame}
\end{document}