我正在尝试使用sty
柏林主题为 Beamer 构建自己的幻灯片。我想在幻灯片页脚中添加徽标。我对如何使用 sty 执行此操作有点困惑。我不知道应该将标签放在哪里logo
。有什么帮助吗?
\ProvidesPackageRCS $Header: /Users/joseph/Documents/LaTeX/beamer/base/themes/theme/beamerthemeBerlin.sty,v d02a7cf4d8ae 2010/06/17 09:11:41 rivanvx $
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\mode<presentation>
\useoutertheme[footline=authorinstitutetitle]{miniframes}
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme{rectangles}
\setbeamerfont{block title}{size={}}
\logo{%
\makebox[0.95\paperwidth]{%
\includegraphics[width=1cm,keepaspectratio]{cern_logo_white.jpg}%
\hfill%
\includegraphics[width=1cm,keepaspectratio]{ntua-logo.jpg}%
DEF
}%
}
\mode
<all>
答案1
像这样吗?
\begin{filecontents}{\jobname.sty}
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\def\beamer@theme@footline@doubletrouble{% modified from tex/latex/beamer/themes/outer/beamerouterthememiniframes.sty
\defbeamertemplate*{footline}{miniframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=3.625ex,dp=0ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\includegraphics[height=3.0625ex,width=10mm,keepaspectratio]{\doubletrouble@logo@left}\quad
\raisebox{.375ex}{\doubletrouble@text@left}}%
\hfill%
{\usebeamerfont{title in head/foot}\usebeamercolor[fg]{title in head/foot}\includegraphics[height=3.0625ex,width=10mm,keepaspectratio]{\doubletrouble@logo@right}\quad
\raisebox{.375ex}{\doubletrouble@text@right}}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
}
\mode<presentation>
\useoutertheme[footline=doubletrouble]{miniframes}
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme{rectangles}
\setbeamerfont{block title}{size={}}
\newcommand*\doubletrouble@logo@left{example-image-a}
\newcommand*\doubletrouble@logo@right{example-image-b}
\newcommand\doubletrouble@text@left{}
\newcommand\doubletrouble@text@right{}
\newcommand*\logoleft[1]{\renewcommand*\doubletrouble@logo@left{#1}}
\newcommand*\logoright[1]{\renewcommand*\doubletrouble@logo@right{#1}}
\newcommand\logotextleft[1]{\renewcommand\doubletrouble@text@left{#1}}
\newcommand\logotextright[1]{\renewcommand\doubletrouble@text@right{#1}}
\mode
<all>
\endinput
\end{filecontents}
\documentclass{beamer}
\usepackage{\jobname}
\logoleft{tiger}
\logoright{cath}
\logotextright{DEF}
\begin{document}
\begin{frame}
some text
\end{frame}
\end{document}