我正在用 Beamer 做演示。因为我隶属于两个组织,所以我想有两个徽标,一个在左下角,另一个在右上角。我该怎么做?
现在我正在使用
\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,}%/\,\inserttotalframenumber
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\setbeamercolor{navigation symbols dimmed}{fg=red!80!black}
\setbeamercolor{navigation symbols}{fg=red!80!black}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{[email protected]}] {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}
\logo{%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{cern_logo_white.jpg}~%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{ntua-logo.jpg}%
}
\usepackage{textpos}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
Good Morning Vietnam!!!
\end{frame}
\end{document}
这使
答案1
尝试
\logo{%
\makebox[0.95\paperwidth]{%
\includegraphics[width=1cm,keepaspectratio]{cern_logo_white.jpg}%
\hfill%
\includegraphics[width=1cm,keepaspectratio]{ntua-logo.jpg}%
}%
}
Paul Gaborit 发现,徽标似乎位于幻灯片右边缘 2.5pt 处。因此,这\paperwidth-5pt
可能是为 LaTeX 框指定的正确尺寸。
答案2
由于textpos
包已经加载,任务并不那么困难。与在首页和幻灯片中定位徽标第二个标志由添加headline
在这种情况下,将其转换为预先存在的模板。
代码:
\documentclass[compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,}%/\,\inserttotalframenumber
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\setbeamercolor{navigation symbols dimmed}{fg=red!80!black}
\setbeamercolor{navigation symbols}{fg=red!80!black}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{[email protected]}] {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}
\logo{%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{ntua-logo}%
}
\usepackage{textpos}
\addtobeamertemplate{headline}{}{%
\begin{textblock*}{100mm}(.015\textwidth,0.2cm)
\includegraphics[height=1cm,width=1cm]{logopolito} % logo of my university
\end{textblock*}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
Good Morning Vietnam!!!
\end{frame}
\end{document}
结果:
答案3
这是一个\hspace
在徽标之间添加空间的解决方案。
假设纸张宽度为\paperwidth
,每个标志的宽度为1cm
,边缘与标志之间的边距为2.5pt
,则空间的长度必须为\paperwidth-2cm-5pt
。
\documentclass[slidestop,compress,mathserif,12pt,xcolor=dvipsnames]{beamer}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{kerkis}
\usepackage{multimedia}
\usepackage{subfigure}
%\usepackage{calc}
\mode<presentation>
\newcommand*\oldmacro{}%
\let\oldmacro\insertshorttitle%
\renewcommand*\insertshorttitle{%
\oldmacro\hfill%
\insertframenumber\,}%/\,\inserttotalframenumber
\setbeamertemplate{footline}[frame number]
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\setbeamercovered{higly dynamic}
\usetheme{Ilmenau} % Beamer theme v 3.0
\useoutertheme[subsection=true]{smoothbars}%Beamer Outer Theme-circles on top
\useinnertheme{circles} %rectangle bullet points instead of circle ones
\usepackage{beamerthemebars}
\setbeamercolor{navigation symbols dimmed}{fg=red!80!black}
\setbeamercolor{navigation symbols}{fg=red!80!black}
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\title{July 2012 H4 Test Beam}
\author[Stamatopoulos N. Athanasios\hspace{2.5cm}{[email protected]}] {Stamatopoulos N. Athanasios}
\institute{NTUA/CERN}
\logo{%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image}%
\hspace{\dimexpr\paperwidth-2cm-5pt}%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image}%
}
\usepackage{textpos}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
Good Morning Vietnam!!!
\end{frame}
\end{document}