答案1
您已经知道如何重新定义theorem begin
模板以删除换行符。只需使用来自我想要的是投影仪上的定理,而不是斜体
\documentclass{beamer}
\makeatletter
\setbeamertemplate{theorem begin}{%
{%
{\bfseries\upshape\inserttheoremname%
\ifx\inserttheoremaddition\@empty\else\ \inserttheoremaddition \fi}%
}%
\space\normalfont%
}
\setbeamertemplate{theorem end}{}
\makeatother
\begin{document}
\begin{frame}{Theorem}
\begin{theorem}[hello]
This is a theorem
\end{theorem}
\end{frame}
\end{document}