最小(非)工作示例:
\documentclass{beamer}
\usepackage{graphicx}
\usetheme{Bergen}
\usecolortheme[named=red]{structure}
\setbeamertemplate{footline}[text line]{%
\parbox{\linewidth}{\vspace*{-8pt}\hfill \includegraphics[width=2cm]{Logo.jpg}}}
\setbeamertemplate{navigation symbols}{}
\begin{document}
\begin{frame}
\end{frame}
\end{document}
(Logo.jpg 是我所在大学的标志。)结果:
目的:
对于标题页,以及:
对于其他页面。问题:
- 如何改变垂直条纹的宽度?
- 我怎样才能使所述条纹延伸至脚线?
- 我如何将徽标放在条纹上?
- 我如何更改背景?
(注意:请忽略右下角徽标的尺寸差异,我只需要width=
在\includegraphics
命令中修复它。)
更新
通过@samcarter 的评论,我能够了解背景情况:
代码:
\documentclass{beamer}
\setbeamertemplate{background}
{\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{Background.png}}
\usetheme{Bergen}
\usecolortheme[named=red]{structure}
\setbeamertemplate{footline}[text line]{%
\parbox{\linewidth}{\vspace*{-8pt}\hfill \includegraphics[width=1cm]{Logo.jpg}}}
\setbeamertemplate{navigation symbols}{}
\begin{document}
\begin{frame}
\end{frame}
\end{document}
所以问题 4 解决了。她对问题 1-2 的建议似乎对我不起作用。问题 3 目前尚未解决。
答案1
创建一个完整的主题超出了本网站的范围,但是这里有一些快速技巧可以创建类似的东西:
\documentclass{beamer}
\usepackage{tikz}
\setbeamertemplate{background}
{\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio]{example-image}}
\setbeamercolor{sidebar}{bg=red!70!black}
\useoutertheme[height=0pt,width=1cm]{sidebar}
\setbeamertemplate{headline}{%
\begin{tikzpicture}[remember picture, overlay]
\node[xshift=-0.5cm,yshift=-0.5cm] at (current page.north east) {\tiny\insertframenumber};
\end{tikzpicture}
}
\title[]{title}
\author[]{author names}
\setbeamertemplate{navigation symbols}{\raisebox{0.2cm}{\includegraphics[width=1cm]{example-image-duck}}\hspace*{0.2cm}}
\begin{document}
\begin{frame}[plain]
\begin{tikzpicture}[remember picture, overlay]
\fill[red!70!black] (current page.south west) rectangle ([xshift=2cm]current page.north west);
\node at ([xshift=2cm,yshift=-1cm]current page.north west) {\includegraphics[width=2cm]{example-image-duck}};
\end{tikzpicture}
\titlepage
\end{frame}
\begin{frame}
normal frame
\end{frame}
\end{document}
答案2
这是主题(文件beamerthemebicocca.sty
):
\NeedsTeXFormat{LaTeX2e}
\mode<presentation>
%--- Font theme (by default, Beamer loads \usefonttheme{default})
%--- Color theme
\usecolortheme[named=red]{structure}
\setbeamercolor{sidebar}{use=local structure,bg=local structure.fg}
%--- Inner theme (by default, Beamer loads \useinnertheme{default})
% Definition of the logo
\setbeamertemplate{logo}{\includegraphics[width=1cm]{example-image}}
% Title page
\addtobeamertemplate{title page}%
{\thispagestyle{bicocca@navigation@titlepage}}{}
\def\ps@bicocca@navigation@titlepage{%
\setbeamertemplate{sidebar canvas left}{%
\usebeamercolor[bg]{local structure}%
\vrule width .15\paperwidth height \paperheight}
\setbeamertemplate{sidebar left}{\vskip 1cm%
\hskip .1\paperwidth\includegraphics[width=2cm]{example-image}}
\@nameuse{ps@navigation}}
% Background image
\setbeamertemplate{background}{%
\pgfsetfillopacity{.05} % choose the opacity you wish here
\includegraphics[height=\paperheight,width=\paperwidth]{example-image}
\pgfsetfillopacity{1}}
%--- Outer theme (by default, Beamer loads \useoutertheme{default})
% No navigation bar
\beamertemplatenavigationsymbolsempty
% Default side bar (red stripe)
\setbeamersize{sidebar width left=1cm}
\mode<all>
下面是使用该主题的示例:
\documentclass{beamer}
\usetheme{bicocca}
\title{My Title}
\author{by Me}
\begin{document}
\maketitle
\begin{frame}
A frame
\end{frame}
\end{document}
您应该example-image
用您的徽标替换文件并适应不同的尺寸。