我正在为入门数学课准备一个演示文稿,有时我想展示在“对齐”环境中编写的证明,并希望逐步揭示它。但是,我还没有找到使用 或 等命令来执行此操作\overlay
的\pause
方法\uncover
。
那么,有没有办法叠加'align'环境中的方程式或方程式的一部分?或者我必须在不同的环境中切分方程式,然后使用 \pause 或任何其他命令(这会更丑陋)?
下面我附上了 MWE,如能得到任何帮助我将非常感激。
\documentclass[usenames,dvipsnames]{beamer}
% To add a table of contents at the beginning of each section
\AtBeginSection[]
{
\begin{frame}
\frametitle{Table of Contents}
\tableofcontents[currentsection]
\end{frame}
}
\setbeamertemplate{section in toc}[sections numbered] % To enumerate the table of contents
%\usetheme{CambridgeUS}
\definecolor{Red}{RGB}{176,23,31}
%This sequence of packages controls the mathematical tools of latex
\usepackage{amsmath}
\usepackage{mathtools}
% \usepackage{mathrsfs}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{bm} % to make math symbols bold
% A more advanced package for images and figures
\usepackage{graphicx}
% These packages controls the graphs
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{fit, calc, matrix, positioning, arrows.meta, intersections, through, backgrounds, patterns}
\usepackage{pgfplots}
\pgfplotsset{compat = newest}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{overwrite option/.style args={#1 with #2}{#1=#2,#1/.code=}}
\pgfplotsset{
vasymptote/.style={before end axis/.append code={\draw[dashed,<->,-{Latex}] ({rel axis cs:0,0} -| {axis cs:#1,0}) -- ({rel axis cs:0,1} -| {axis cs:#1,0}); }},
myaxis/.style={axis line style={<->, {Latex}-{Latex}}}
} % This fancy shit sets the arrows to both parts of the axis in the axis environment of pgfplot
% to import certain files
\usepackage{import}
%% Useful packages
\usepackage[makeroom]{cancel}
\usepackage{lipsum,graphicx,subcaption}
\usepackage{float}
\usepackage{xcolor}
\usepackage{fourier}
\usepackage{multicol}
\setlength{\columnsep}{5pt}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=DarkOrchid,
filecolor=magenta,
urlcolor=blue,
}
\begin{document}
\begin{frame}{DERIVATIVES}
\framesubtitle{IMPLICIT DIFFERENTIATION}
Assuming $y$ depends on $x$ and using implicit differentiation on the second term: \pause
\begin{align*}qy^{q-1}\frac{d y}{d x}=px^{p-1} &
\Leftrightarrow \frac{d y}{d x} = \frac{px^{p-1}}{qy^{q-1}} & \text{Solving for }\frac{d y}{d x} \pause\\
& \Leftrightarrow \frac{d y}{d x} = \frac{px^{p-1}}{q\left(x^{\frac{p}{q}}\right)^{q-1}} &
\text{Substituting } y \\
& \Leftrightarrow \frac{d y}{d x} = \frac{px^{p-1}}{qx^{p-\frac{p}{q}}} & \text{Multiplying exponents} \\
& \Leftrightarrow \frac{d y}{d x} = \frac{p}{q} x^{p-1-p+\frac{p}{q}}\\
& \Leftrightarrow \frac{d y}{d x} = \frac{p}{q} x^{\frac{p}{q}-1} =
nx^{n-1}
\end{align*}
\end{frame}
\end{document}
答案1
看看以下建议是否适合您:
\documentclass[usenames,dvipsnames]{beamer}
\usepackage{fourier}
\usepackage{mathtools, amssymb, bm}
\usepackage{pgfplots} % it load tikz too
\usetikzlibrary{arrows.meta,
backgrounds,
calc,
decorations.pathreplacing,
intersections,
matrix,
positioning, patterns,
through}
\usepgfplotslibrary{fillbetween}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{frame}{DERIVATIVES}
\framesubtitle{IMPLICIT DIFFERENTIATION}
Assuming $y$ depends on $x$ and using implicit differentiation on the second term:
\begin{align*}
\uncover<2->{
qy^{q-1}\frac{d y}{d x}=px^{p-1}
& \Leftrightarrow \frac{d y}{d x} = \frac{px^{p-1}}{qy^{q-1}}
& \text{Solving for }\frac{d y}{d x} \\ }
\uncover<3->{
& \Leftrightarrow \frac{d y}{d x} =
\frac{px^{p-1}}{q\left(x^{\frac{p}{q}}\right)^{q-1}}
& \text{Substituting } y \\ }
\uncover<4->{
& \Leftrightarrow \frac{d y}{d x}
= \frac{px^{p-1}}{qx^{p-\frac{p}{q}}}
& \text{Multiplying exponents} \\ }
\uncover<5->{
& \Leftrightarrow \frac{d y}{d x}
= \frac{p}{q} x^{p-1-p+\frac{p}{q}} \\ }
\uncover<6->{
& \Leftrightarrow \frac{d y}{d x}
= \frac{p}{q} x^{\frac{p}{q}-1} = nx^{n-1} }
\end{align*}
\end{frame}
\end{document}
笔记:
beamer
加载包,xcolor
然后hyperref
mathtools
加载amsmath
,amssymb
加载amsfont
,pgfplots
加载tikz
float
没有多大意义,因为beamer
不支持浮动
所以这些包不需要再次加载。