如何让Beamer的logo放在右上角

# 位置
需要导入包
```
usepackage{beamerfoils}
usepackage{tikz}
usepackage{pgf}
MyLogo{%
%includegraphics[height=0.15 extwidth]{fig/school.jpg}
pgfputat{pgfxy(0,8)}{pgfbox[right,base]{includegraphics[height=0.1/textcm]{fig/school.jpg}}}
}
```

# 首先是如何让有些页面有logo
使用上面的MyLogo然后对需要的frame开启和关闭
```
LogoOn
egin{frame}
     itlepage
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}}}
}

egin{document}
{
LogoOn
egin{frame}[t]{Hello world}
ableofcontents
end{frame}
LogoOff
}
section{Section 1}
egin{frame}[t]{Hello world}
egin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{frame}
section{Section 2}
egin{frame}[t]{Hello world}
egin{enumerate}
item Item 1
item Item 2
item Item 3
end{enumerate}
end{frame}
end{document}
```




原文地址:https://www.cnblogs.com/yxzfscg/p/03cd3244edc18439523d7c2b50d32448.html