你好,我希望我的徽标可以放在每张幻灯片的右上角,也可以将它放置在标题页上的任何位置。
\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\newcommand{\Rightarrowtext}[1]{\ensuremath{\stackrel{\text{#1}}{\Rightarrow}}}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{eso-pic}
\author{Philippe Fanaro}
\title{MC Algorithm for Non-Linear Equations}
%\setbeamercovered{transparent}
%\setbeamertemplate{navigation symbols}{}
\logo{\includegraphics[height=1cm]{Minerva}\vspace{175pt}}
%\institute{}
\date{October 2014}
%\subject{}
\newcommand*\oldmacro{}
\let\oldmacro\insertshorttitle
\renewcommand*\insertshorttitle{
\oldmacro\hfill
\insertframenumber\,/\,\inserttotalframenumber}
\begin{document}
这是我目前所拥有的,我希望徽标能出现在华沙主题右上角的蓝色部分,但无论我对“175pt”做什么,图像都不会出现在那里。我认为华沙主题没有启用它,也许我必须编写一个自定义主题。
答案1
您可以将图像添加到标题:
\documentclass[11pt]{beamer}
\usetheme{Warsaw}
\makeatletter
\setbeamertemplate{headline}
{%
\leavevmode%
\@tempdimb=2.4375ex%
\ifnum\beamer@subsectionmax<\beamer@sectionmax%
\multiply\@tempdimb by\beamer@sectionmax%
\else%
\multiply\@tempdimb by\beamer@subsectionmax%
\fi%
\ifdim\@tempdimb>0pt%
\advance\@tempdimb by 1.825ex%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
\vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
\vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.3\paperwidth}\vfil}%
\hfill
\includegraphics[height=\headheight]{example-image}
\end{beamercolorbox}%
\fi%
}
\makeatother
\begin{document}
\section{bla}
\subsection{blub1}
\begin{frame}
content...
\end{frame}
\subsection{blub2}
\begin{frame}
content...
\end{frame}
\subsection{blub3}
\begin{frame}
content...
\end{frame}
\subsection{blub4}
\begin{frame}
content...
\end{frame}
\end{document}