![方程太长,不适合投影仪框架,但分割环境不起作用](https://linux22.com/image/299512/%E6%96%B9%E7%A8%8B%E5%A4%AA%E9%95%BF%EF%BC%8C%E4%B8%8D%E9%80%82%E5%90%88%E6%8A%95%E5%BD%B1%E4%BB%AA%E6%A1%86%E6%9E%B6%EF%BC%8C%E4%BD%86%E5%88%86%E5%89%B2%E7%8E%AF%E5%A2%83%E4%B8%8D%E8%B5%B7%E4%BD%9C%E7%94%A8.png)
主要代码如下:
\begin{frame}
\frametitle{Householder Transformation}
\begin{equation}
%\onslide<1->
\mathop{
\begin{pmatrix}
\times & \times &\times \\
\times & \times &\times \\
\times & \times &\times \\
\times & \times &\times
\end{pmatrix}
}_{A}
%\onslide<2->
\xrightarrow{(1:4,1:3)}
\mathop{
\begin{pmatrix}
\mythickertimes & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes
\end{pmatrix}
}_{Q_{1}A}
%\onslide<3->
\xrightarrow{(2:4,2:3)}
\begin{split}
\mathop{
\begin{pmatrix}
\times & \times & \times \\
0 & \mythickertimes & \mythickertimes \\
0 & \boldsymbol{0} & \mythickertimes \\
0 & \boldsymbol{0} & \mythickertimes
\end{pmatrix}
}_{Q_{1}A}
%\onslide<4->
\xrightarrow{(3:4,3:3)}
\mathop{
\begin{pmatrix}
\times & \times & \times \\
0 & \times & \times \\
0 & 0 & \mythickertimes \\
0 & 0 & \boldsymbol{0}
\end{pmatrix}
}_{Q_{1}A}
%\onslide<5->
\xrightarrow{(2:4,2:3)}
R.
\end{split}
\end{equation}
\end{frame}
新的 \mythickertimes 定义如下:
\usepackage{tikz}
\usetikzlibrary{shapes.misc}
\newcommand{\mythickertimes}{ \tikz[baseline=-.55ex] \node [inner sep=0pt,cross out,draw,line width=1pt,minimum size=1ex] (a) {};}
拧紧效果如下图所示:
我怎样才能得到这样的等式:
答案1
使用以下提供的任何可换行的显示数学环境amsmath
。下面我使用了,但您也alignat
可以使用gather
或:align
\documentclass{beamer}
\usepackage{amsmath,amssymb}
\newcommand{\mythickertimes}{\boldsymbol{\times}}
\begin{document}
\begin{frame}
\frametitle{Householder Transformation}
\begin{alignat*}{3}
\underset{A}{\begin{pmatrix}
\times & \times & \times \\
\times & \times & \times \\
\times & \times & \times \\
\times & \times & \times
\end{pmatrix}}
& \xrightarrow{(1:4,1:3)} &
\underset{Q_1 A}{\begin{pmatrix}
\mythickertimes & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes
\end{pmatrix}}
& \xrightarrow{(2:4,2:3)} \\
\underset{Q_1 A}{\begin{pmatrix}
\times & \times & \times \\
0 & \mythickertimes & \mythickertimes \\
0 & \boldsymbol{0} & \mythickertimes \\
0 & \boldsymbol{0} & \mythickertimes
\end{pmatrix}}
& \xrightarrow{(3:4,3:3)} &
\underset{Q_1 A}{\begin{pmatrix}
\times & \times & \times \\
0 & \times & \times \\
0 & 0 & \mythickertimes \\
0 & 0 & \boldsymbol{0}
\end{pmatrix}}
& \xrightarrow{(2:4,2:3)}
R.
\end{alignat*}
\end{frame}
\end{document}
要使用覆盖按顺序显示矩阵操作,您可以使用\onslide
:请注意,您必须为环境中的每个单元单独指定覆盖alignat
:
\documentclass{beamer}
\usepackage{amsmath,amssymb}
\newcommand{\mythickertimes}{\boldsymbol{\times}}
\begin{document}
\begin{frame}
\frametitle{Householder Transformation}
\begin{alignat*}{3}
\underset{A}{\begin{pmatrix}
\times & \times &\times \\
\times & \times &\times \\
\times & \times &\times \\
\times & \times &\times
\end{pmatrix}}
& \onslide<2->{\xrightarrow{(1:4,1:3)} &
\underset{Q_1 A}{\begin{pmatrix}
\mythickertimes & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes \\
\boldsymbol{0} & \mythickertimes & \mythickertimes
\end{pmatrix}}}
& \onslide<3->{\xrightarrow{(2:4,2:3)} \\
\underset{Q_1 A}{\begin{pmatrix}
\times & \times & \times \\
0 & \mythickertimes & \mythickertimes \\
0 & \boldsymbol{0} & \mythickertimes \\
0 & \boldsymbol{0} & \mythickertimes
\end{pmatrix}}}
& \onslide<4->{\xrightarrow{(3:4,3:3)} &
\underset{Q_1 A}{\begin{pmatrix}
\times & \times & \times \\
0 & \times & \times \\
0 & 0 & \mythickertimes \\
0 & 0 & \boldsymbol{0}
\end{pmatrix}}}
& \onslide<5->{\xrightarrow{(2:4,2:3)}
R.}
\end{alignat*}
\end{frame}
\end{document}