\pause 无法正常工作,正在向后移动

\pause 无法正常工作,正在向后移动

所以我想以正常方式使用 \pause,但它却向后显示内容,我不知道为什么!!!

\documentclass[usenames, dvipsnames]{beamer}
\usepackage{amsmath, amssymb, amsthm, mathtools, commath, array, tcolorbox, cancel, caption, subcaption, graphicx, multicol,beamerthemesplit,stmaryrd,comment, color,movie15,animate}

\usepackage[latin1]{inputenc}

\usetheme{Madrid}


\begin{document}
    %6 slide
\begin{frame}{Introducción: La función gamma}
\begin{align*}
\Gamma(x) = \int_0^\infty e^{-t}t^{x-1} dt \\\pause
\text{Integrando por partes, obtenemos:}\\ 
\Gamma(x+1) &= \int_0^\infty e^{-t}t^{x}dt\\ \pause
&= \lim_{B \rightarrow \infty} \int_0^B e^{-t}t^{x}dt\\ \pause
&=\lim_{B \rightarrow \infty} \Big[-e^{-t}t^x \Big|_0^B + x \int_0^B e^{-t}t^{x-1}dt \Big] \\ \pause
&= x \lim_{B \rightarrow \infty} \int_0^B e^{-t}t^{x-1}dt\\ \pause
&= x\Gamma(x) 
\end{align*}
\end{frame}
\end{document}

答案1

align执行两次,你需要避开\pause第一次运行:

\documentclass[usenames, dvipsnames]{beamer}
\usepackage{amsmath, amssymb, amsthm, mathtools, commath, array, tcolorbox, cancel, caption, subcaption, graphicx, multicol,beamerthemesplit,stmaryrd,comment, color,movie15,animate}

\usepackage[latin1]{inputenc}

\usetheme{Madrid}

\makeatletter
\def\zzpause{\ifmeasuring@\else\expandafter\pause\fi}
\makeatother
\begin{document}
    %6 slide
\begin{frame}{Introducción: La función gamma}
\begin{align*}
\Gamma(x) = \int_0^\infty e^{-t}t^{x-1} dt \\\zzpause
\text{Integrando por partes, obtenemos:}\\ 
\Gamma(x+1) &= \int_0^\infty e^{-t}t^{x}dt\\ \zzpause
&= \lim_{B \rightarrow \infty} \int_0^B e^{-t}t^{x}dt\\ \zzpause
&=\lim_{B \rightarrow \infty} \Big[-e^{-t}t^x \Big|_0^B + x \int_0^B e^{-t}t^{x-1}dt \Big] \\ \zzpause
&= x \lim_{B \rightarrow \infty} \int_0^B e^{-t}t^{x-1}dt\\ \zzpause
&= x\Gamma(x) 
\end{align*}
\end{frame}
\end{document}

答案2

解决方法:

\documentclass[usenames, dvipsnames]{beamer}
\usepackage{amsmath, amssymb, amsthm, mathtools, commath, array, tcolorbox, cancel, caption, subcaption, stmaryrd,comment, media9,animate}

\usepackage[utf8]{inputenc}
\useoutertheme{split}
\usetheme{Madrid}

\begin{document}

%6 slide
\begin{frame}{Introducción: La función gamma}
\begin{align*}
\visible<+->{\Gamma(x) = \int_0^\infty e^{-t}t^{x-1} dt} \\
\visible<+->{\text{Integrando por partes, obtenemos:}}\\ 
\visible<.->{\Gamma(x+1) &= \int_0^\infty e^{-t}t^{x}dt}\\ 
\visible<+->{&= \lim_{B \rightarrow \infty} \int_0^B e^{-t}t^{x}dt}\\ 
\visible<+->{&=\lim_{B \rightarrow \infty} \Big[-e^{-t}t^x \Big|_0^B + x \int_0^B e^{-t}t^{x-1}dt \Big]} \\ 
\visible<+->{&= x \lim_{B \rightarrow \infty} \int_0^B e^{-t}t^{x-1}dt}\\ 
\visible<+->{&= x\Gamma(x)} 
\end{align*}
\end{frame}

\end{document}

相关内容