我想将标题页上标题后面的蓝色框改为白色,并将标题颜色改为黑色。
此外,我想在标题和作者之间添加一条橙色的水平直线。理想的最终结果如下:
原始代码如下:
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}[page number]
\setbeamertemplate{navigation symbols}{}
}
\usepackage{graphicx}
\usepackage{booktabs}
\title[Short title]{Main Topic }
\author{John Smith}
\institute[UCLA]
{
University of California \\
\medskip
\textit{[email protected]}
}
\date{\today}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{First Section}
\begin{frame}
\frametitle{Paragraphs of Text}
Sed
\end{frame}
\end{document}
非常感谢!
答案1
您可以按如下方式重新定义标题页:
\documentclass{beamer}
\mode<presentation> {
\usetheme{Madrid}
\setbeamertemplate{footline}[page number]
\setbeamertemplate{navigation symbols}{}
}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{datetime}
\makeatletter
\setbeamertemplate{title page}
{
\vbox{}
\vfill
\begingroup
\centering
\begin{minipage}{.9\linewidth}
\usebeamerfont{title}\textsc{\inserttitle}\par
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\insertsubtitle\par}%
\fi%
\vspace{1.7em}
{\color{orange}\hrule}\vspace{1.7em}
\usebeamerfont{author}\insertauthor\par\vspace{.7em}
\usebeamerfont{date}\insertdate\par
\end{minipage}\par
\endgroup
\vfill
\thispagestyle{empty}
}
\makeatother
\title[Short title]{Main Topic}
\author{John Smith}
\institute[UCLA]
{
University of California \\
\medskip
\textit{[email protected]}
}
\date{\shortmonthname\space\the\year}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{First Section}
\begin{frame}
\frametitle{Paragraphs of Text}
Sed
\end{frame}
\end{document}
当然,如果需要的话,你可以将作者和日期的字体更改为衬线字体:
\setbeamerfont{author}{family=\rmfamily}
\setbeamerfont{date}{family=\rmfamily}