Postings on living in an Emacs world. Posts will be mostly on using Emacs, related functions and tools.
Ads by Google
Friday, March 6, 2009
LaTeX Beamer: How to get a logo in the top right corner of the slide
Here's a simple way to place the logo where you desire when you want to get your image on your slide in beamer. Note that you'd need the Textpos package to place the image where you want.
6 comments:
Anonymous
said...
Do something like the code below \setbeamertemplate{frametitle}
6 comments:
Do something like the code below
\setbeamertemplate{frametitle}
\begin{beamercolorbox}[wd=1.2\paperwidth,ht=1.54\barheight]{Title bar}
\pgfuseimage{figure_header}
\end{beamercolorbox}
\vskip -1.3cm
\linethickness{0.0pt}
\vskip.0cm
\framelatex{
\begin{beamercolorbox}[wd=\paperwidth,ht=1.4\barheight]{Title bar}
\vskip-0.5cm\hskip.5cm\textbf{\insertframetitle}
\ifx\insertframesubtitle\@empty \vskip0.3cm\else%
{\vskip-.2cm\usebeamerfont*{framesubtitle}\hskip.5cm\insertframesubtitle}
\fi
\vskip0.1cm
\end{beamercolorbox}}
}
Doesn't work. Can you be more specific? I am also using the Warsaw theme
I did this and it worked for me
Insert this code before the title
\usepackage[absolute,overlay]{textpos}
\setlength{\TPHorizModule}{1mm}
\setlength{\TPVertModule}{1mm}
\newcommand{\MyLogo}{%
\begin{textblock}{14}(120.0,0.7)
\includegraphics[scale=0.3]{my_logo}
\end{textblock}
}
\newenvironment{MyFrame}[1]{\begin{frame}{#1} \MyLogo}{\end{frame}}
Then replace all \begin{frame} with \begin{MyFrame} and \end{frame} with \end{MyFrame}
Another simple way to do it is
\addtobeamertemplate{headline}{}
{%
\begin{flushright}
\begin{tikzpicture}[remember picture,overlay]
\node [left ]{\includegraphics[width=2cm]{logo}};
\end{tikzpicture}
\end{flushright}
\vskip -0.7cm
}
The last solution worked, but how do i remove the vertica skip (vskip) after the title page. The headers in the succeeding pages now have that skip.
very nice blog
Post a Comment