我在 Beamer 中使用 TikZ,并且想将椭圆标注镜像为 tikz 图片的一部分,以便它指向给定的节点。
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes.callouts}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\node(st){Something};
\node(ec)[ellipse callout, above right=of st, draw=black]{Comment};
\end{tikzpicture}
\end{frame}
\end{document}
答案1
两个选项:
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes.callouts}
\begin{document}
\begin{frame}
\begin{tikzpicture}
\node(st){Something};
\node(ec)[
ellipse callout,
above right=of st,
draw=black,
callout relative pointer={(-1,-1)}
]{Comment};
\end{tikzpicture}
\end{frame}
\begin{frame}
\begin{tikzpicture}
\node(st){Something};
\node(ec)[
ellipse callout,
above right=of st,
draw=black,
callout absolute pointer={(st.north east)}
]{Comment};
\end{tikzpicture}
\end{frame}
\end{document}