定理环境没有按照预期的方式运行

定理环境没有按照预期的方式运行

我正在使用以下内容模板制作海报。

我想要的是使用 amsthm 包提供的定理环境来阐明一个定理。问题是,在文件 beamerthemeconfposter 中定义了某种“结构”,称为块,当我使用

\newtheorem{theo}{Theorem}
...
\begin{theo}
Theorem
\end{theo}

它创建了一个新的块,其标题为“定理”。它没有像通常那样将定理放在新块中。

\begin{theo}
...
\end{theo}

表现得像

\begin{block}{Theorem}
...
\end{block}

我搜索了所有随模板下载的文档,但找不到任何线索。下图(查看“Riemann-Roch 定理”部分)显示了效果(我删除了 main.tex 文件中的图片)

定理表现得像块

答案1

按照课堂beamerposter上的内容beamer,让我们深入了解一下beameruserguide

在页面中16我们发现:

在此处输入图片描述

因此,我们跳到第 12.4 节,Theorem Environments它以

在此处输入图片描述

这意味着所有这些环境在 beamer 中都已定义为 overlay-specification-aware。所有这些环境都类似于beamerblocks。如果您不想要它,请noamsthm在中用作类选项beamerposter

\documentclass[final,noamsthm]{beamer}

\usepackage[scale=1.24]{beamerposter} % Use the beamerposter package for laying out the poster

\usetheme{confposter} % Use the confposter theme supplied with this template

\newtheorem{theo}{Theorem}

\setbeamercolor{block title}{fg=ngreen,bg=white} % Colors of the block titles
\setbeamercolor{block body}{fg=black,bg=white} % Colors of the body of blocks
\setbeamercolor{block alerted title}{fg=white,bg=dblue!70} % Colors of the highlighted block titles
\setbeamercolor{block alerted body}{fg=black,bg=dblue!10} % Colors of the body of highlighted blocks

\newlength{\sepwid}
\newlength{\onecolwid}
\newlength{\twocolwid}
\newlength{\threecolwid}
\setlength{\paperwidth}{48in} % A0 width: 46.8in
\setlength{\paperheight}{36in} % A0 height: 33.1in
\setlength{\sepwid}{0.024\paperwidth} % Separation width (white space) between columns
\setlength{\onecolwid}{0.22\paperwidth} % Width of one column
\setlength{\twocolwid}{0.464\paperwidth} % Width of two columns
\setlength{\threecolwid}{0.708\paperwidth} % Width of three columns
\setlength{\topmargin}{-0.5in} % Reduce the top margin size


\title{Unnecessarily Complicated Research Title} % Poster title

\author{John Smith, James Smith and Jane Smith} % Author(s)

\institute{Department and University Name} % Institution(s)


\begin{document}

\addtobeamertemplate{block end}{}{\vspace*{2ex}} % White space under blocks
\addtobeamertemplate{block alerted end}{}{\vspace*{2ex}} % White space under highlighted (alert) blocks

\setlength{\belowcaptionskip}{2ex} % White space under figures
\setlength\belowdisplayshortskip{2ex} % White space under equations

\begin{frame}[t] % The whole poster is enclosed in one beamer frame

\begin{columns}[t] % The whole poster consists of three major columns, the second of which is split into two columns twice - the [t] option aligns each column's content to the top

\begin{column}{\onecolwid} % The first column

\begin{alertblock}{Objectives}

\begin{theo}
\[\sin^2 x + \cos^2 x = 1\]
\end{theo}

\end{alertblock}

\begin{block}{Introduction}
\begin{theo}
Another theorem
\end{theo}
\end{block}

\end{column} % End of the first column

\end{columns} % End of all the columns in the poster

\end{frame} % End of the enclosing frame

\end{document}

在此处输入图片描述

相关内容