我有一个投影仪模板,下面我重现它。
我想要对其进行 5 处更改,希望得到一些指导:
- 底部栏具有用户指定的颜色和高度。
- 我希望能够将我选择的图像放在栏的右侧。
- 我希望枚举数字和逐项项目符号的颜色与底部栏的颜色相同
- 标题字体也应与底栏颜色相同
- 我想要一个计数器,显示 RHS 上的当前页数和总页数
- 我想要左侧的作者姓名
下面是最终输出颜色和定位的示例。
\documentclass[10pt]{beamer}%
\usepackage{appendixnumberbeamer}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{bbm}
\usepackage{amsmath}
\usepackage{arydshln}
\usepackage{graphicx}
\usepackage{mathrsfs}
\usepackage{multirow}
\usepackage{textpos}
\title[]{Title}
\subtitle{}
\author[Author]{Author}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Frame title}
\begin{itemize}
\item dsa
\end{itemize}
\end{frame}
\end{document}
答案1
以下内容或许可以帮助你入门:
\documentclass[10pt]{beamer}%
\usepackage{appendixnumberbeamer}
\setbeamercolor*{upperfootline}{bg=white, fg=beamer@blendedblue}
\setbeamercolor*{lowerfootline}{bg=beamer@blendedblue, fg=white}
\setbeamertemplate{page number in head/foot}[totalframenumber]%
\newcommand{\insertmyfootertext}{Some text written here} %<--- Add text for left half of lower footer here
\newcommand{\insertmyimage}{example-image} %<--- Add image for right half of lower footer here
\makeatletter
\defbeamertemplate*{footline}{mycustomtheme}
{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex]{upperfootline}%
\usebeamerfont{author in head/foot}\hspace*{2em}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{upperfootline}%
\usebeamertemplate{page number in head/foot}\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex]{lowerfootline}%
\usebeamerfont{author in head/foot}\hspace*{2em}\insertmyfootertext
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{lowerfootline}%
\includegraphics[width=3cm, height=2ex]{\insertmyimage}\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\title[]{Title}
\subtitle{}
\author[Author]{Author}
\section{some text}
\begin{document}
\begin{frame}
\frametitle{Frame title}
\begin{itemize}
\item dsa
\end{itemize}
\begin{enumerate}
\item other item
\end{enumerate}
\end{frame}
\end{document}
答案2
最小代码:
\documentclass[10pt]{beamer}
\title[]{Title}
\subtitle{test}
\author[Author name here]{Author}
\institute{PNU}
\date{\today}
\setbeamercolor{section in head/foot}{fg=white, bg=blue}
\setbeamercolor{author in head/foot}{fg=blue, bg=white}
\beamertemplatenavigationsymbolsempty
\makeatletter
\defbeamertemplate*{footline}{myminiframes theme}
{%
\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
\end{beamercolorbox}
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
\hfill%
\insertframenumber{}\,/\,\inserttotalframenumber%
\end{beamercolorbox}%
\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}%
{\usebeamerfont{section in head/foot} somthing written here \hfill \setlength{\fboxrule}{0pt}\setlength{\fboxsep}{0pt}\fcolorbox{blue}{blue!70}{My own image here}}%
\end{beamercolorbox}%
\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
\end{beamercolorbox}
}
\makeatother
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Frame title}
\begin{itemize}
\item dsa
\end{itemize}
\end{frame}
\end{document}