我希望 qed 符号仅出现在此帧的最后一张幻灯片上。有人能帮助我吗?
\documentclass[10pt, professionalfonts, aspectratio=169]{beamer}
\usepackage{amssymb,latexsym}
\usepackage{amsmath}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage{enumerate}
\begin{document}
\begin{frame}
\frametitle{Propriedades da Adição e da Multiplicação por Número em $\mathbb{R}^n$}
\begin{proof}
(Continuação)
\begin{enumerate}[(a)]\addtocounter{enumi}{7}
\item
\begin{align*}
\lambda (\boldsymbol{u} + \boldsymbol{v}) &= \lambda \left( (u_1,\, \dots,\, u_n) + (v_1,\, \dots,\, v_n) \right)\\
\onslide<2->{&= \lambda ( u_1 + v_1,\, \dots,\, u_n + v_n )\\}
\onslide<3->{&= \left( \lambda (u_1 + v_1),\, \dots,\, \lambda (u_n + v_n) \right)\\}
\onslide<4->{&= ( \lambda u_1 + \lambda v_1,\, \dots,\, \lambda u_n + \lambda v_n )\\}
\onslide<5->{&= (\lambda u_1,\, \dots,\, \lambda u_n) + (\lambda v_1,\, \dots,\, \lambda v_n)\\}
\onslide<6->{&= \lambda (u_1,\, \dots,\, u_n) + \lambda (v_1,\, \dots,\, v_n)\\}
\onslide<7->{&= \lambda \boldsymbol{u} + \lambda \boldsymbol{v}. \qedhere}
\end{align*}
\end{enumerate}
\end{proof}
\end{frame}
\end{document}
答案1
您可以更改qed symbol
模板以使其仅在第 7 个覆盖层上可见:
\documentclass[10pt, professionalfonts, aspectratio=169]{beamer}
\usepackage{
%amssymb,
latexsym}
%\usepackage{amsmath}
\usepackage[brazil]{babel}
%\usepackage[utf8]{inputenc}
%\usepackage{enumerate}
\begin{document}
\begin{frame}
\frametitle{Propriedades da Adição e da Multiplicação por Número em $\mathbb{R}^n$}
\setbeamertemplate{qed symbol}{\visible<7->{\openbox}}
\begin{proof}
(Continuação)
\begin{enumerate}[(a)]\addtocounter{enumi}{7}
\item
\begin{align*}
\lambda (\boldsymbol{u} + \boldsymbol{v}) &= \lambda \left( (u_1,\, \dots,\, u_n) + (v_1,\, \dots,\, v_n) \right)\\
\onslide<2->{&= \lambda ( u_1 + v_1,\, \dots,\, u_n + v_n )\\}
\onslide<3->{&= \left( \lambda (u_1 + v_1),\, \dots,\, \lambda (u_n + v_n) \right)\\}
\onslide<4->{&= ( \lambda u_1 + \lambda v_1,\, \dots,\, \lambda u_n + \lambda v_n )\\}
\onslide<5->{&= (\lambda u_1,\, \dots,\, \lambda u_n) + (\lambda v_1,\, \dots,\, \lambda v_n)\\}
\onslide<6->{&= \lambda (u_1,\, \dots,\, u_n) + \lambda (v_1,\, \dots,\, v_n)\\}
\onslide<7->{&= \lambda \boldsymbol{u} + \lambda \boldsymbol{v}. \qedhere}
\end{align*}
\end{enumerate}
\end{proof}
\end{frame}
\end{document}
无关:
你不需要加载
amssymb
,amsmath
beamer 会自动加载它们如果你的 tex 分布合理,则不需要
\usepackage[utf8]{inputenc}
,这是几年来的默认设置我不会
\usepackage{enumerate}
用 Beamer。Beamer 会自动加载enumerate
包,然后对其进行一些调整。