我如何修改以下标题以使字母更大

我如何修改以下标题以使字母更大

我有以下代码

\documentclass[10pt]{beamer}
\graphicspath{{./Figures/}}
\usetheme[progressbar=frametitle]{metropolis}
\setbeamercolor{progress bar}{fg=orange,bg=green}

\makeatletter
\setbeamertemplate{headline}
{%
  \begin{beamercolorbox}[ht=3.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
    \usebeamerfont{section in head/foot}\usebeamercolor[fg]{section in head/foot}%
    \insertsectionhead
  \end{beamercolorbox}%
  \begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
  \end{beamercolorbox}
  \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
    \usebeamerfont{subsection in head/foot}\insertsubsectionhead
  \end{beamercolorbox}%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\makeatother

\setbeamercolor{section in head/foot}{fg=normal text.bg, bg=structure.fg}

我从以下答案中复制了这个问题

我制作了两张幻灯片

\section{Introduction}
\subsection{Subsection}

\begin{frame}{Introduction}

    \begin{center}
    I have text here
    \end{center}

\end{frame}

我在第二张幻灯片的左上角有章节和小节,但文字太小了。我尝试更改第一段文字中的所有数字,但我只是移动了文字,而没有更改其大小。

幻灯片如下

请问,有人能告诉我如何让幻灯片中的简介和小节变得更大吗?我对 beamer 不太熟悉。

答案1

您可以(sub-)section in head/foot像这样更改字体:

\documentclass[10pt]{beamer}
\graphicspath{{./Figures/}}
\usetheme[progressbar=frametitle]{moloch}% modern fork of the metropolis theme
\setbeamercolor{progress bar}{fg=orange,bg=green}

\makeatletter
\setbeamertemplate{headline}
{% 
  {\usebeamerfont{section in head/foot}
  \begin{beamercolorbox}[ht=3.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}
    \usebeamercolor[fg]{section in head/foot}%
    \insertsectionhead
  \end{beamercolorbox}}%
  \begin{beamercolorbox}[colsep=1.5pt]{middle separation line head}
  \end{beamercolorbox}
  {\usebeamerfont{subsection in head/foot}
  \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
    leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot}
    \insertsubsectionhead
  \end{beamercolorbox}}%
  \begin{beamercolorbox}[colsep=1.5pt]{lower separation line head}
  \end{beamercolorbox}
}
\makeatother

\setbeamercolor{section in head/foot}{fg=normal text.bg, bg=structure.fg}

\setbeamerfont{section in head/foot}{size=\small}
\setbeamerfont{subsection in head/foot}{size=\small}

\begin{document}


\section{Introduction}
\subsection{Subsection}

\begin{frame}{Introduction}

    \begin{center}
    I have text here
    \end{center}

\end{frame}


\end{document}

在此处输入图片描述

相关内容