我通常使用默认主题,beamer
因为它很简单。
我想将默认主题的标题页更改为类似于的标题页,metropolis
但带有
- 默认主题的默认颜色的线条;以及
- 白色背景颜色如下:
我尝试了以下代码,它使用答案定制 beamer 标题页? :
\documentclass[10pt, xcolor=table, handout, notheorems]{beamer}
\usepackage{tikz}
\usetheme[]{default}
\makeatletter
\setbeamertemplate{title page}{
\vbox{}
\vfill
\begingroup
\centering
\begin{beamercolorbox}[sep=8pt,center]{title}
\usebeamerfont{title}\inserttitle\par%
\ifx\insertsubtitle\@empty%
\else%
\vskip0.25em%
{\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\vskip1em\par
\begin{beamercolorbox}[sep=0.35cm,wd=\the\@tempdima]{frametitle}
\begin{tikzpicture}
\draw[line width = 1.5] (-2,0) -- (12,0);
\end{tikzpicture}
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{author}
\usebeamerfont{author}\insertauthor
\end{beamercolorbox}
\begin{beamercolorbox}[sep=8pt,center]{institute}
\usebeamerfont{institute}\insertinstitute
\end{beamercolorbox}
% ------------------------
\begin{beamercolorbox}[sep=8pt,center]{date}
\usebeamerfont{date}\insertdate
\end{beamercolorbox}\vskip0.5em
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
\endgroup
\vfill
}
\makeatother
\title{bbbbbbbbb}
\author{aaaaaaaa}
\institute[]{ABC University}
\date{\today}
\begin{document}
\frame{\titlepage}
\end{document}
答案1
以下方法(字体除外)可能是一个很好的起点。我试图让事情尽可能简单。
代码
\documentclass[10pt,xcolor=dvipsnames]{beamer}
\usepackage{kerkis}
\usepackage{kmath}
\usecolortheme[named=Blue]{structure}
\setbeamerfont{title}{series=\bfseries}
\setbeamerfont{author}{size=\normalsize}
\setbeamercolor{author}{fg=structure.fg}
\setbeamerfont{date}{size=\small}
\setbeamercolor{date}{fg=structure.fg}
\setbeamerfont{institute}{size=\small}
\setbeamercolor{institute}{fg=structure.fg}
\setbeamertemplate{title page}{%
{%
\usebeamercolor[fg]{title}
\usebeamerfont{title}
\MakeUppercase\inserttitle
}
\par\medskip
{%
\color{Blue!30!cyan}
\rule{\linewidth}{1pt}
}
\par\medskip
{%
\usebeamercolor[fg]{author}
\usebeamerfont{author}
\insertauthor
}\par\smallskip
{%
\usebeamercolor[fg]{date}
\usebeamerfont{date}
\insertdate
}\par
{%
\usebeamercolor[fg]{institute}
\usebeamerfont{institute}
\insertinstitute
}
}
\title{Title of the talk}
\author{Some Author}
\institute[]{ABC University}
\date{\today}
\begin{document}
\maketitle
% \begin{frame}{My frame}
% Some text
% \end{frame}
\end{document}