标签:
# 位置
需要导入包
```
\usepackage{beamerfoils}
\usepackage{tikz}
\usepackage{pgf}
\MyLogo{%
%\includegraphics[height=0.15\textwidth]{fig/school.jpg}
\pgfputat{\pgfxy(0,8)}{\pgfbox[right,base]{\includegraphics[height=0.1/textcm]{fig/school.jpg}}}
}
```
# 首先是如何让有些页面有logo
使用上面的\MyLogo然后对需要的frame开启和关闭
```
\LogoOn
\begin{frame}
\titlepage
\end{frame}
\LogoOff
```
# 完整例子
```
\documentclass[t]{beamer}
\usepackage{tikz}
\usepackage{beamerfoils}
\usepackage{pgf}
\MyLogo{
\pgfputat{\pgfxy(0,8)}{\pgfbox[right,base]{\includegraphics[height=1cm]{school.jpg}}}
}
\begin{document}
{
\LogoOn
\begin{frame}[t]{Hello world}
\tableofcontents
\end{frame}
\LogoOff
}
\section{Section 1}
\begin{frame}[t]{Hello world}
\begin{enumerate}
\item Item 1
\item Item 2
\item Item 3
\end{enumerate}
\end{frame}
\section{Section 2}
\begin{frame}[t]{Hello world}
\begin{enumerate}
\item Item 1
\item Item 2
\item Item 3
\end{enumerate}
\end{frame}
\end{document}
```
标签:
原文地址:http://www.cnblogs.com/yxzfscg/p/03cd3244edc18439523d7c2b50d32448.html