beamer插入图片_用Latex制作幻灯片(beamer)

LaTeX安装和基本语句参考我的这篇文章:

用Latex制作PPT,可以省去自己微调排版,只要把内容填写好,然后选择个主题即可,熟练使用后比较省心。文档类型选择为beamer。 beamer的官方文档链接:

beamer的基本结构为:

\documentclass{beamer}

\usepackage{ctex} %一个支持中文宏包,如果不用中文无法显示

\usepackage{graphicx} %这个包提供\includegraphics命令来插入图片

\usetheme{Boadilla} %主题

\usecolortheme{default} %主题的颜色

\title{这是PPT标题} %标题

\author{作者名字\inst{1},作者名字\inst{2}} %作者

\institute{\inst{1}第一个单位\and\inst{2}第二个单位} %这里的\and有换行的效果

\date{\today} %时间(默认也会显示)

\logo{\includegraphics[height=1.0cm]{1.jpg}} %右下角的小log

\begin{document} %正文开始

\begin{frame} %相当于ppt里的一页

\titlepage %标题页

\end{frame}

\begin{frame}

\frametitle{目录} %当前页的标题

\tableofcontents %制作目录,需要\section{}配合

\end{frame}

\section{第一节} %用来做目录

\begin{frame}

\frametitle{当前页的标题1}

这是第一节第一页的内容。This is a text in the first frame. This is a text in the first frame. This is a text in the first frame.

\end{frame}

\section{第二节}

\begin{frame}

\frametitle{当前页的标题2}

这是第二节第一页的内容。这里使用了\textbackslash pause。\pause This is a text in the second frame. This is a text in the second frame. This is a text in the second frame. %\pause是暂停,前后会分成两页。

\end{frame}

\begin{frame}

\frametitle{当前页的标题3:Two-column slide}

\begin{columns} %分成列

\column{0.5\textwidth} %占用一半

This is a text in first column.

$$E=mc^2$$

\begin{itemize} %制作列表

\item First item

\item Second item

\end{itemize}

\column{0.5\textwidth} %占用一半

This text will be in the second column

and on a second tought this is a nice looking

layout in some cases.

\end{columns}

\end{frame}

\end{document}

编译结果为:

关于主题,可以在下面这个链接中查找选择(主题矩阵,纵向是主题名称,横向是颜色主题名称):

有的主题底部没有显示页数,或者底部内容要自定义,可以在导言区加上这一片代码:

%在导言区加上这一片,在底部可以显示作者、标题、日期和页数。

\setbeamertemplate{footline}{%

\leavevmode%

\hbox{%

\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%

\usebeamerfont{author in head/foot}\insertshortauthor

\end{beamercolorbox}%

\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%

\usebeamerfont{title in head/foot}\insertshorttitle

\end{beamercolorbox}%

\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%

\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}

\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}

\end{beamercolorbox}}%

\vskip0pt%

}

参考资料:

+1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值