由于日期栏中有多余的空间,我可以缩小此栏以在标题栏中留出更多空间。参见图片中的红色标记。
\documentclass[usenames,dvipsnames]{beamer}
\usepackage{xcolor}
\usepackage{tikz}
\usetheme{Madrid}
\logo{%
\includegraphics[width=1cm,height=1.5cm,keepaspectratio]{example-image-a}%
\hspace{\dimexpr\paperwidth-2cm-5pt}%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image-a}%
}
\begin{document}
\title{Resource Allocation in Cloud Radio Access Network}
\author[Md.Al-Helal \& Jobayed Ullah]{
\parbox{2.5cm}{
\centering Md.Al-Helal\\Roll:SH-51}\hspace{3cm}
\parbox{2.5cm}{
{\centering Jobayed Ullah\\Roll:EK-107}}
\centering \vspace{1cm}\\Supervisor:\\Tomal Adhikary
}
\vspace{1cm}
\institute[CSEDU]{Computer Science \& Engineering\\CSEDU}
\date{February 25, 2018}
\begin{frame}
\maketitle
\end{frame}
\end{document}
答案1
beamer主题Madrid
使用infolines
定义页脚线的“外部主题”。以下 MWE 包含对页脚线的重新定义。与原始主题相比,我beamercolorbox
根据标题的宽度更改了第二和第三行的宽度规范。
\documentclass[usenames,dvipsnames]{beamer}
\usepackage{xcolor}
\usepackage{tikz}
\usetheme{Madrid}
\makeatletter
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.4\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.266666\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother
\logo{%
\includegraphics[width=1cm,height=1.5cm,keepaspectratio]{example-image-a}%
\hspace{\dimexpr\paperwidth-2cm-5pt}%
\includegraphics[width=1cm,height=1cm,keepaspectratio]{example-image-a}%
}
\begin{document}
\title{Resource Allocation in Cloud Radio Access Network}
\author[Md.Al-Helal \& Jobayed Ullah]{
\parbox{2.5cm}{
\centering Md.Al-Helal\\Roll:SH-51}\hspace{3cm}
\parbox{2.5cm}{
{\centering Jobayed Ullah\\Roll:EK-107}}
\centering \vspace{1cm}\\Supervisor:\\Tomal Adhikary
}
\vspace{1cm}
\institute[CSEDU]{Computer Science \& Engineering\\CSEDU}
\date{February 25, 2018}
\begin{frame}
\maketitle
\end{frame}
\end{document}