定理环境中的文本大小

定理环境中的文本大小

我可以在定理环境中更改大小吗?如果适用,我该如何将文本更改为非草书?

\documentclass{beamer}

\usetheme{CambridgeUS}

\setbeamerfont{block title}{series=\bfseries,size=\small}
\setbeamercolor{block title}{fg=white, bg=blue}
\setbeamercolor{block body}{bg=gray!20!bg}

\setbeamertemplate{theorems}[numbered]
\newtheorem{beisp}{Beispiel}

\makeatletter
\setbeamertemplate{theorem begin}{%
\begin{center}
\begin{minipage}{0.7\textwidth}
\begin{\inserttheoremblockenv}
{%
  \inserttheoremname
  \inserttheoremnumber
  \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
  }%
 }

 \setbeamertemplate{theorem end}{%
\end{\inserttheoremblockenv}
\end{minipage}
\end{center}
 }
 \makeatother

 \begin{document}

  \begin{frame}

 \begin{beisp}[Konsumausgaben eines Haushalts]
This is the beginning of Theorem 1.
\end{beisp} 

 \end{frame} 
 \end{document}

答案1

这是一个建议。

\documentclass{beamer}

\usetheme{CambridgeUS}

\setbeamerfont{block title}{series=\bfseries,size=\small}
\setbeamercolor{block title}{fg=white, bg=blue}
\setbeamercolor{block body}{bg=gray!20!bg}

\setbeamertemplate{theorems}[numbered]
\newtheorem{beisp}{Beispiel}

\makeatletter
\setbeamertemplate{theorem begin}{%
\begin{center}
\begin{minipage}{0.7\textwidth}
\begin{\inserttheoremblockenv}
{%
  \inserttheoremname
  \inserttheoremnumber
  \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi%
  }%
  \normalfont\small % <- I only added this line
 }

 \setbeamertemplate{theorem end}{%
\end{\inserttheoremblockenv}
\end{minipage}
\end{center}
 }
 \makeatother

 \begin{document}

  \begin{frame}

 \begin{beisp}[Konsumausgaben eines Haushalts]
This is the beginning of Theorem 1.
\end{beisp} 

 \end{frame} 
 \end{document}

有关风险和副作用,请咨询您的药剂师或医生。;-)

相关内容