Beamer \institute 文本大小更改为小

Beamer \institute 文本大小更改为小

我正在使用beamer\institute命令。

我有多个机构,只想更改机构的字体大小,而不是整个文档。我希望机构比文档的其余部分小得多。

这是我的代码,但我可能搞错了。感谢大家的意见,因为我对beamerLaTeX 还不熟悉。

\institute[University of] {size=\fontsize{9pt}{10pt}\selectfont University of Utah}%   
{
  \inst{1}%
  Department of Electrical and Computer Engineering\\
  University of
  \and
  \inst{2}%
  Department of Chemistry\\
  University of
  \and
  \inst{3}%
  Department of\\
  University of
  \and
  \inst{4}%
  Department of \\
  University of
  ~ \\
  \pgfuseimage{medallion}
}

答案1

beamer您可以使用以下方法更改元素的字体大小\setbeamerfont{<element>}{<font attributes>}

\documentclass{beamer}

\setbeamerfont{institute}{size=\tiny}

\institute[University of]{
  \inst{1}%
   Department of Electrical and Computer Engineering\\
   University of
  \and
  \inst{2}%
  Department of Chemistry\\
 University of
   \and
  \inst{3}%
  Department of\\
  University of
  \and
  \inst{4}%
  Department of \\
   University of
  ~ \\
  \pgfuseimage{example-image}
}

\begin{document}
\maketitle
\end{document}

如果您想使用绝对字体大小而不是 LaTeX 命令\tiny... \Huge,请尝试类似

\setbeamerfont{institute}{size=\fontsize{7pt}{8pt}}

\selectfont在此上下文中不是必需的)。另请参阅beamer手动的欲了解有关 的更多信息\setbeamerfont

相关内容