如何更改 beamer 包中的标题、颜色和字体大小?
我的 MWE 是:
\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{charter}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{wallpaper}
\usepackage{IEEEtrantools}
%\setbeamerfont{subsection in toc}{size=\tiny}
\setlength{\footnotesep}{0pt}
\newcounter{saveenumi}
\newcommand{\seti}{\setcounter{saveenumi}{\value{enumi}}}
\newcommand{\conti}{\setcounter{enumi}{\value{saveenumi}}}
\resetcounteronoverlays{saveenumi}
%% Title slide formatting %%
\pgfdeclareimage[width=\paperwidth]{titlebackground}{put here any image}
\setbeamerfont{subtitle}{size=\tiny}
\setbeamertemplate{title page}{
\begin{picture}(0,0)
\put(-28.5,-163){%
\pgfuseimage{titlebackground}
}
\put(0,-75){%
\begin{minipage}[b][4.5cm][t]{0.65\textwidth}
\color{white}
\usebeamerfont{title}
{\inserttitle\\[0.9cm]}
\usebeamerfont{subtitle}
{\insertauthor\par}
{\insertinstitute\\[0.3cm]}
{\insertdate}
\end{minipage}
}
\end{picture}
}
%% General slide formatting %%
\definecolor{oxfordblue}{RGB}{4,30,66}
\pgfdeclareimage[width=3.9cm]{oxfordlogo}{put here any image}
\pgfdeclareimage[width=1cm]{mathslogo}{put here any image}
\setbeamertemplate{headline}
{%
\begin{picture}(0,0)
\put(230,-45){%
\pgfuseimage{oxfordlogo}
}
\put(20,-50){%
\rule{320pt}{0.4pt}
}
\end{picture}
}
\setbeamertemplate{frametitle}
{%
\begin{picture}(0,0)
\put(-8,-10){%
\normalsize\color{oxfordblue}\insertframetitle
}
\put(-7,-20){%
\tiny\color{oxfordblue}\insertframesubtitle
}
\end{picture}
}
\setbeamertemplate{footline}
{%
\begin{picture}(0,0)
\put(20,30){%
\rule{320pt}{0.4pt}
}
\put(20,14){%
%\pgfuseimage{mathslogo}
\color{oxfordblue}\text{Jimyeong Lee (GSSI)}
}
\put(100,14){%
\color{oxfordblue}\insertshortdate
}
\put(160,14){%
\color{oxfordblue}\insertshorttitle
}
\put(337,14){%
\color{oxfordblue}\insertpagenumber
}
\end{picture}%
}
%% Information (author, title, etc.) %%
\title[MATH]{MATH}% short title for footer
\author%
{%
\sc{Ph.D. candidate: }\\
\textit{Institute}
}
\institute%
{%
\sc{Advisor: }\\
\textit{Institute}
}
\date[\today]{Thesis Defense Presentation, \today} % short date for footer
%% Content of slides %%
\begin{document}
% \setbeamertemplate{footnote}{
% \raisebox{1cm}{
% \parbox[b]{10.5cm}{
% %${\insertfootnotemark}$\insertfootnotetext
% }
% }}
\begin{frame}[plain]
\titlepage
\end{frame}
% TOC
\begin{frame}{Contents}
%\begin{multicols}{2}
\tableofcontents
%\end{multicols}
\end{frame}
\end{document}
答案1
要更改标题字体大小,您可以使用与副标题完全相同的机制:\setbeamerfont{title}{size=\Huge}
由于标题页是自己定义的,因此颜色有点棘手。如果您添加
\usebeamercolor[fg]{title}
到自定义标题页,则可以通过以下方式更改颜色\setbeamercolor{title}{fg=blue}
离题:您不需要graphicx
使用 beamer,而是multicol
使用wallpaper
beamer 自己的用于列和背景的机制。
\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{charter}
\usepackage{tikz}
%\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
%\usepackage{multicol}
%\usepackage{wallpaper}
\usepackage{IEEEtrantools}
%% Title slide formatting %%
\pgfdeclareimage[width=\paperwidth]{titlebackground}{example-image}
\setbeamerfont{subtitle}{size=\tiny}
\setbeamertemplate{title page}{
\begin{picture}(0,0)
\put(-28.5,-163){%
\pgfuseimage{titlebackground}
}
\put(0,-75){%
\begin{minipage}[b][4.5cm][t]{0.65\textwidth}
\color{white}
\usebeamerfont{title}
{\usebeamercolor[fg]{title}\inserttitle\\[0.9cm]}
\usebeamerfont{subtitle}
{\insertauthor\par}
{\insertinstitute\\[0.3cm]}
{\insertdate}
\end{minipage}
}
\end{picture}
}
\setbeamerfont{title}{size=\Huge}
\setbeamercolor{title}{fg=blue}
%% General slide formatting %%
\definecolor{oxfordblue}{RGB}{4,30,66}
\pgfdeclareimage[width=3.9cm]{oxfordlogo}{example-image}
\pgfdeclareimage[width=1cm]{mathslogo}{example-image}
\title[MATH]{MATH}% short title for footer
\author{%
\sc{Ph.D. candidate: }\\
\textit{Institute}
}
\institute{%
\sc{Advisor: }\\
\textit{Institute}
}
\date[\today]{Thesis Defense Presentation, \today}
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\end{document}