LaTex 中的Beamer 和 思维导图的使用

本文介绍了如何使用LaTex的Beamer类创建演示文稿,包括设置titlepage,通过frame控制页面内容,以及利用Beamer实现动画效果。此外,还展示了使用Tikz宏包创建思维导图的方法,包括节点和连线的格式设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • LaTex 中的Beamer使用

Beamer

  • beamer 中通过frame 来控制每一页的内容,其与编写常用的LaTex文稿基本没有区别

titlepage

\title[Short Title]{My Presentation}
\subtitle{An Introduction to LaTeX Beamer}
\author{River Chandler}
\institute{Sichuan University}
\date{\today}

	\begin{frame}
		\titlepage
	\end{frame}

Beamer 动画

  • 当你开始使用LaTex时,就不需要太关心ppt的动画问题了
  • example
\documentclass{beamer}

\begin{document}
	
	\begin{frame}
		\frametitle{animation example}
		
		\begin{itemize}
			\item<1-> first step
			\item<2-> second step
			\item<3-> third step
		\end{itemize}
		
		\pause
		
		\begin{enumerate}
			\item<4-> first item
			\item<5-> second item
			\item<6-> third item
		\end{enumerate}
		
		\pause
		
		\begin{block}<7->{caution}
			this is an example with animation
		\end{block}
		
	\end{frame}
	
\end{document}
  • 用WPS 播放即可

思维导图 Tikz 宏包

思维导图结构

  • \node 
  • child 指令
		\begin{tikzpicture}[above left, distance=2cm]
			
			\node {1}
			child[sibling distance=2cm] {node {2}
				child[sibling distance=1.5cm] {node {3}
					child[sibling distance=2cm] {node {4}}
					child[sibling distance=2cm] {node {5}}
					child[sibling distance=3cm] {node {6}}
				}
				child[sibling distance=1.5cm] {node {7}}
				child[sibling distance=1.5cm] {
					child[sibling distance=1cm] {node {8}}
				}
				child[sibling distance=1.5cm] {
					child[sibling distance=1cm] {node {9}}
				}
				child[sibling distance=1.5cm] {
					child[sibling distance=1cm] {node {0}}
				}
			}
			child[sibling distance=2.5cm] {node {a}}
			child[sibling distance=2cm] {node {b}}
			child[sibling distance=2cm] {
				child[sibling distance=2cm] {node {c}}
				child[sibling distance=2cm] {node {d}}
			};
		\end{tikzpicture}

 

 

节点格式设置

		\begin{tikzpicture}
			\node[rectangle, draw=blue, fill=yellow!20, rounded corners] {e}
			child {node[circle, draw=red,  fill=green!20] {f}}
			child {node[rectangle, draw=orange, fill=pink!20] {g}}
			child {node[rectangle, draw=orange, fill=blue!20] {h}};
		\end{tikzpicture}	

 

连线格式设置

		\begin{tikzpicture}
			\node {i}
			child {node {j}}
			child {node {k}}
			child[red, dashed] {node {l}};
		\end{tikzpicture}

完整代码 

\documentclass{article}
\usepackage{tikz}
\usepackage{CJKutf8}

\begin{document}
    \begin{CJK*}{UTF8}{gbsn}
        \begin{tikzpicture}[above left, distance=2cm]
            
            \node {1}
            child[sibling distance=2cm] {node {2}
                child[sibling distance=1.5cm] {node {3}
                    child[sibling distance=2cm] {node {4}}
                    child[sibling distance=2cm] {node {5}}
                    child[sibling distance=3cm] {node {6}}
                }
                child[sibling distance=1.5cm] {node {7}}
                child[sibling distance=1.5cm] {
                    child[sibling distance=1cm] {node {8}}
                }
                child[sibling distance=1.5cm] {
                    child[sibling distance=1cm] {node {9}}
                }
                child[sibling distance=1.5cm] {
                    child[sibling distance=1cm] {node {0}}
                }
            }
            child[sibling distance=2.5cm] {node {a}}
            child[sibling distance=2cm] {node {b}}
            child[sibling distance=2cm] {
                child[sibling distance=2cm] {node {c}}
                child[sibling distance=2cm] {node {d}}
            };
        \end{tikzpicture}
        
        \begin{tikzpicture}
            \node[rectangle, draw=blue, fill=yellow!20, rounded corners] {e}
            child {node[circle, draw=red,  fill=green!20] {f}}
            child {node[rectangle, draw=orange, fill=pink!20] {g}}
            child {node[rectangle, draw=orange, fill=blue!20] {h}};
        \end{tikzpicture}    
        
        \begin{tikzpicture}
            \node {i}
            child {node {j}}
            child {node {k}}
            child[red, dashed] {node {l}};
        \end{tikzpicture}
        
    \end{CJK*}
\end{document}

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

River Chandler

谢谢,我会更努力学习工作的!!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值