no more blocks in thm

This commit is contained in:
Yu Cong 2025-03-15 20:35:26 +08:00
parent 7ede86e1fe
commit bd8344a45b
2 changed files with 21 additions and 11 deletions

View File

@ -132,23 +132,33 @@
\setbeamerfont{title}{series=\bfseries\boldmath} \setbeamerfont{title}{series=\bfseries\boldmath}
\setbeamertemplate{frametitle}{\vskip2pt\hskip-6pt\underline{\insertframetitle}} % add line under frametitle \setbeamertemplate{frametitle}{\vskip2pt\hskip-6pt\underline{\insertframetitle}} % add line under frametitle
% theorem env
\makeatletter \setbeamertemplate{theorem begin}{%
\setbeamertemplate{theorem begin} {
{% \vspace{5pt}
\begin{\inserttheoremblockenv}
{}{ % does not work without specifying the CambridgeUS theme
\usebeamerfont*{block title}% \usebeamerfont*{block title}%
\selectfont \selectfont
\usebeamercolor[fg]{block title}% \usebeamercolor[fg]{block title}%
\textbf{
\inserttheoremname \inserttheoremname
\inserttheoremnumber \inserttheoremnumber
\ifx \inserttheoremaddition \empty \else\ [\inserttheoremaddition]\fi \ifx \inserttheoremaddition \empty \else\ [\inserttheoremaddition]\fi
\inserttheorempunctuation} \inserttheorempunctuation
\selectfont }
} }
\setbeamertemplate{theorem end}{\end{\inserttheoremblockenv}} }
\makeatother \setbeamertemplate{theorem end}{\vspace{5pt}}
% proof env
\setbeamertemplate{proof begin}{%
{\vspace{5pt}
\usebeamercolor[fg]{block title}
\textit{Proof.}}
}
\setbeamertemplate{proof end}{
\qedhere
\vspace{5pt}
}
% more theorem env % more theorem env
\newtheorem{observation}{Observation} \newtheorem{observation}{Observation}
\newtheorem{question}{Question} \newtheorem{question}{Question}

BIN
main.pdf

Binary file not shown.