\documentclass[usenames,dvipsnames]{beamer}
\usetheme{Madrid}
\begin{document}
\title{Function Reusing Based Task Distribution between Edge Cloud and Central Cloud in Hybrid CRAN}
\author{Md.Al-Helal}
\vspace{1cm}
%\institute[CSEDU]{Computer Science \& Engineering\\University of Dhaka}
\date{July 29, 2018}
\begin{frame}
\maketitle
\end{frame}
\end{document}
我想将标题放在脚注中,并使用标题中的日期空间删除日期。
答案1
查看此模板的页脚定义,可以发现:
\defbeamertemplate*{footline}{infolines theme}
{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\usebeamertemplate{page number in head/foot}\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
因为你想要一些更大的改变,我建议重写它:
\makeatletter
\setbeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.15\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.77\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
}%
\begin{beamercolorbox}[wd=.08\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}%
\usebeamertemplate{page number in head/foot}%
\hspace*{2ex}
\end{beamercolorbox}
\vskip0pt%
}
\makeatother
您可以更改当前用设置的那些框的宽度wd=.333333\paperwidth
。
在 MWE 中,包括一个略微改变的版本,用于在第二页包含机构:
\documentclass[usenames,dvipsnames]{beamer}
\usetheme{Madrid}
\makeatletter
\setbeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.15\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.77\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
}%
\begin{beamercolorbox}[wd=.08\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}%
\usebeamertemplate{page number in head/foot}%
\hspace*{2ex}
\end{beamercolorbox}
\vskip0pt%
}
\makeatother
\begin{document}
\title{Function Reusing Based Task Distribution between Edge Cloud and Central Cloud in Hybrid CRAN}
\author{Md.Al-Helal}
\date{July 29, 2018}
\begin{frame}
\maketitle
\end{frame}
\institute[CSEDU]{Computer Science \& Engineering\\University of Dhaka}
\makeatletter
\setbeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.18\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\ifblank\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.74\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
}%
\begin{beamercolorbox}[wd=.08\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}%
\usebeamertemplate{page number in head/foot}%
\hspace*{1ex}
\end{beamercolorbox}
\vskip0pt%
}
\makeatother
\begin{frame}
\maketitle
\end{frame}
\end{document}
选择一个重新定义并将其放在你的序言中,也许之后再进行一些修改。