beamer中的箭头
2015-11-06 09:46
1846 查看
\documentclass{beamer} \usepackage{tikz} \usepackage{amsmath} \usetikzlibrary{arrows,shapes} \author{Author} \title{Presentation title} \begin{document} \tikzstyle{every picture}+=[remember picture] %a global declaration \begin{frame} \tikzstyle{na} = [baseline=-.5ex] % 箭头要下移的距离,后面\tikz[na]要用到的。 \begin{itemize}[<+-| alert@+>] \item A \tikz[na] \node[coordinate] (n1) {}; % \end{itemize} % Below we mix an ordinary equation with TikZ nodes. Note that we have to % adjust the baseline of the nodes to get proper alignment with the rest of % the equation. $ a = \tikz[baseline]{ \node[fill=blue!20,anchor=base] (t1) {$ 2\omega$}; } + \tikz[baseline]{ \node[fill=red!20, ellipse,anchor=base] (t2) {$\alpha\times r$}; } + \tikz[baseline]{ \node[fill=green!20,anchor=base] (t3) {$\omega\times r$}; } $ \begin{itemize}[<+-| alert@+>] \item B \tikz[na]\node [coordinate] (n2) {}; \item C \tikz[na]\node [coordinate] (n3) {}; \end{itemize} % Now it's time to draw some edges between the global nodes. Note that we % have to apply the 'overlay' style. \begin{tikzpicture}[overlay] \path[line width=3,->]<1-> (n1) edge [bend left] (t1); %[bend left] 箭头向箭头的左方凸起 \path[<->]<2-> (n2) edge [bend right] (t2);%[bend right] 箭头向箭头的右方凸起 \path[color=red,->>]<3-> (n3) edge [out=0, in=-90] (t3); %[out=0,in=-90] 箭头发起水平,结束是向上的90度角。 \end{tikzpicture} \end{frame} \end{document}
相关文章推荐
- 如何使用 Beamer 创建演示文稿
- Ubuntu12.04 安装LaTex(TexLive+TexMaker+中文环境) 4000
- css简单实现三角形箭头
- Miktex 2.9 + Texmaker 中文显示
- 有关LaTeX参考文献的一些问题
- LaTeX实用宏命令
- LaTeX使用小结
- Sublime text 3 + MacTex + Skim 中文显示问题
- 关于LATEX插入图的处理,仅供参考
- LaTeX新人教程,30分钟从完全陌生到基本入门
- LaTeX入门笔记
- 经测可用的3个网页插入Latex公式在线编辑器
- latex 备忘
- (排bug)CTex+TeXstudio中文乱码问题
- 在Windows和Linux下使用LaTeX
- TeX排版记录 多行长公式 括号 对齐 问题
- Synctex无效的问题
- 将jpg/jpeg文件转换为eps格式,在latex文档中插入eps
- 使用LaTex/Ctex遇到的几个问题--内存不足、pgfplots安装等
- .cls vs. .sty