这是示例代码。在第 1 帧中,我们使用了 \begin{note} . \end{note}
命令。我希望看到一个类似定理环境的块。我正在使用 XeLaTeX 引擎。
\documentclass[aspectratio=1610]{beamer} % 160mm x 100mm
%%%
\usetheme{Boadilla}
\usecolortheme{orchid}
%%%
\usepackage[minalphanames=3,maxalphanames=4,maxcitenames=3,maxbibnames=99,style=alphabetic,hyperref,backref=true,backrefstyle=none]{biblatex}
\addbibresource{mybib.bib}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
\usepackage{shadow}
\usepackage{comment}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{pifont}
\usepackage{ulem}
%%%
\setbeamertemplate{blocks}[rounded][shadow=true]
%%%
\theoremstyle{plain}
\newtheorem{proposition}{\bf Proposition}
\theoremstyle{definition}
\newtheorem{exercise}{\bf Exercise}
\newtheorem{algorithm}{\bf Algorithm}
\newtheorem{question}{\bf Question}
\newtheorem{axiom}{\bf Axiom}
\newtheorem{property}{\bf Property}
\newtheorem{assumption}{\bf Assumption}
\theoremstyle{remark}
\newtheorem{remark}{\bf Remark}
%\newtheorem{note}{\bf Note} % Already defined
\newtheorem{claim}{\bf Claim}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
% Frame 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame[t]
{ \frametitle{Note does not work in beamer}
Hello.
\begin{note}
Note that "note" does not work in beamer. Why?
\end{note}
Hello.
\begin{theorem}
Theorem works well.
\end{theorem}
}
% Frame .. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame[t,allowframebreaks]
{ \frametitle{References}
\printbibliography
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
答案1
beamer 中的注释是一个具有特殊用途的宏:在单独的页面或屏幕上创建演讲者注释。
如果你想为笔记创建一个类似定理的环境,你应该选择另一个名字,例如
\documentclass[aspectratio=1610]{beamer} % 160mm x 100mm
%%%
\usetheme{Boadilla}
\usecolortheme{orchid}
%%%
\usepackage[minalphanames=3,maxalphanames=4,maxcitenames=3,maxbibnames=99,style=alphabetic,hyperref,backref=true,backrefstyle=none]{biblatex}
\addbibresource{mybib.bib}
%\usepackage{amsfonts}
%\usepackage{amsmath}
\usepackage{mathtools}
%\usepackage{amsthm}
%\usepackage{amssymb}
\usepackage{bm}
%\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
\usepackage{shadow}
\usepackage{comment}
%\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{tikz}
\usepackage{pifont}
\usepackage{ulem}
%%%
\setbeamertemplate{blocks}[rounded][shadow=true]
%%%
\theoremstyle{plain}
\newtheorem{proposition}{Proposition}
\theoremstyle{definition}
\newtheorem{exercise}{Exercise}
\newtheorem{algorithm}{Algorithm}
\newtheorem{question}{Question}
\newtheorem{axiom}{Axiom}
\newtheorem{property}{Property}
\newtheorem{assumption}{Assumption}
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newtheorem{claim}{Claim}
\newtheorem{mynote}{Note}
\setbeamerfont{block title}{series=\bfseries}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
% Frame 1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[t]
\frametitle{Note does not work in beamer}
Hello.
\begin{mynote}
Note that "note" does not work in beamer. Why?
\end{mynote}
Hello.
\begin{theorem}
Theorem works well.
\end{theorem}
\end{frame}
\end{document}