有人能帮忙吗,这是哪个 beamer 主题?或者如何创建这样的主题?任何帮助都将不胜感激
答案1
它不是默认主题之一,但您可以创建它:
\documentclass{beamer}
\useinnertheme[shadow=false]{rounded}
\usecolortheme{beaver}
\useoutertheme{sidebar}
\usepackage{tikz}
\definecolor{color1}{RGB}{94,124,114}% green-gray
\definecolor{color2}{RGB}{192,0,0}% red
\setbeamercolor{palette primary}{bg=color2,fg=white}
\setbeamercolor{palette secondary}{bg=color1,fg=red}
%\setbeamercolor{palette tertiary}{bg=color2,fg=color2}
%\setbeamercolor{palette secondary}{bg=color1,fg=color2}
\setbeamertemplate{footline}{}
\setbeamertemplate{navigation symbols}{}
\setbeamercolor{title}{bg=color2,fg=white}
\setbeamercolor{logo}{bg=color1,fg=white}
\setbeamercolor*{sidebar}{fg=white,bg=color1}
\makeatletter
\setbeamertemplate{headline}{%
\begin{beamercolorbox}[wd=\paperwidth]{frametitle}
\ifx\beamer@sidebarside\beamer@lefttext%
\else%
\hfill%
\fi%
\ifdim\beamer@sidebarwidth>0pt%
\usebeamercolor[bg]{logo}%
\vrule width\beamer@sidebarwidth height \beamer@headheight%
\hskip-\beamer@sidebarwidth%
\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}%
\begin{tikzpicture}[remember picture,overlay]
\coordinate (aux)
at (\beamer@leftsidebar,-0.2\paperheight);
\coordinate (aux2)
at (\beamer@leftsidebar,0);
\draw[
line width=4pt,
color2,
rounded corners
]
(\beamer@leftsidebar,0|-aux) --
(aux2) --
(\paperwidth,0|-aux2);
\node[
outer sep=0pt,
draw=color2,
anchor=south,
fill=white,
text=black,
circle,minimum size=14pt
] (numbu)
at (aux)
{\insertsectionnumber};
\end{tikzpicture}%
}
\setbeamertemplate{background}{%
\includegraphics[]{back}%
}
\addtobeamertemplate{sidebar left}{}{%
\begin{tikzpicture}[remember picture,overlay]
\coordinate (aux)
at (\beamer@leftsidebar,.65\paperheight);
\draw[
line width=4pt,
black
]
(\beamer@leftsidebar,0) --
(\beamer@leftsidebar,0|-aux);
\node[
outer sep=0pt,
draw=black,
anchor=south,
fill=white,
text=black,
circle,minimum size=14pt
] (numbl)
at (\beamer@leftsidebar,0)
{\insertframenumber};
\end{tikzpicture}%
}
\makeatother
\logo{Logo}
\title[The title for the sidebar]{The title}
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\section{Test section one}
\begin{frame}
\frametitle{Test frame}
test
\end{frame}
\section{Test section two}
\begin{frame}
\frametitle{Test frame}
test
\end{frame}
\section{Test section three}
\begin{frame}
\frametitle{Test frame}
test
\end{frame}
\end{document}
结果显示标题框和内部框:
图像中某些元素的含义不清楚;特别是侧边栏旁边圆圈内的数字的含义在问题中没有明确说明,所以我使用了部分编号和帧编号;可以适当修改这些元素以得到所需的结果。
back.png
我用于模板的图像background
只是原始背景的一个片段: