mirror of
https://github.com/congyu711/BeamerTheme.git
synced 2025-07-12 08:31:31 +08:00
no more blocks in thm
This commit is contained in:
parent
7ede86e1fe
commit
bd8344a45b
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user