![投影仪中的 PaloAlto 主题:徽标](https://linux22.com/image/253920/%E6%8A%95%E5%BD%B1%E4%BB%AA%E4%B8%AD%E7%9A%84%20PaloAlto%20%E4%B8%BB%E9%A2%98%EF%BC%9A%E5%BE%BD%E6%A0%87.png)
在 PaloAlto 主题中,我希望将徽标放在右上角而不是左上角,以便侧边栏从左上角开始。
任何想法 ?
谢谢
答案1
重新定义标题模板,将徽标放置在右侧,并抑制左上角的 Draker 方块:
\documentclass{beamer}
\usetheme{PaloAlto}
\makeatletter
\setbeamertemplate{headline}
{%
\begin{beamercolorbox}[wd=\paperwidth]{frametitle}
\ifx\beamer@sidebarside\beamer@lefttext%
\else%
\hfill%
\fi%
\ifdim\beamer@sidebarwidth>0pt%
\usebeamercolor[bg]{logo}%
\hfill\hbox to \beamer@sidebarwidth{\hss\vbox to
\beamer@headheight{\vss\hbox{\color{fg}\insertlogo}\vss}\hss}%
\else%
\vrule width0pt height \beamer@headheight%
\fi%
\end{beamercolorbox}
}
\logo{\includegraphics[height=\beamer@headheight]{ctanlion}}
\makeatother
\begin{document}
\begin{frame}
\frametitle{Test Frame One}
CTAN lion drawing by Duane Bibby.
\end{frame}
\end{document}