答案1
让我将我的评论转换为答案:
- 你的等式写得很错误:
- 不允许
\begin{equation} ... \end{equation}
在里面筑巢\begin{displaymath} ... \end{displaymath}
, $
也不允许在方程式中使用(它旨在用于文本中的数学表达式)
- 不允许
- 除了其他答案中所示之外,您的等式还可以用多种方式写出:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Let $\Gamma$ be a $2\times 2$ Hermitian matrix,
\[
\Gamma = \begin{bmatrix}
\gamma_{1 1} & \gamma_{1 0} \\
\gamma_{0 1} & \gamma_{0 0}
\end{bmatrix},
\]
and write
\begin{align*}
\Gamma(z, w)
& = \begin{bmatrix} w & 1 \end{bmatrix}
\Gamma
\begin{bmatrix} z \\ 1 \end{bmatrix} \\
& = \gamma_{00} + \gamma_{0 1} z + \gamma_{10} w + \gamma_{11} z w.
\end{align*}
\end{document}
如上所述,米科在下面的评论中,\[ ... \]
完全等同于\begin{displaymath} ... \end{displaymath}
。
\documentclass{article}
\usepackage{mathtools}% needed for `\shortintertext`
\begin{document}
Let $\Gamma$ be an $2\times 2$ Hermitian matrix,
\begin{align*}
\Gamma & = \begin{bmatrix}
\gamma_{1 1} & \gamma_{1 0} \\
\gamma_{0 1} & \gamma_{0 0}
\end{bmatrix},
\shortintertext{and write}
\Gamma(z, w)
& = \begin{bmatrix} w & 1 \end{bmatrix}
\Gamma
\begin{bmatrix} z \\ 1 \end{bmatrix} \\
& = \gamma_{00} + \gamma_{0 1} z + \gamma_{10} w + \gamma_{11} z w.
\end{align*}
\end{document}
这使:
还有一个(最终)替代方案 :-),如建议的那样芭芭拉·比顿在下面的评论中:
\documentclass{article}
\usepackage{mathtools}% needed for `\shortintertext`
\begin{document}
Let $\Gamma$ be an $2\times 2$ Hermitian matrix,
\begin{gather*}
\Gamma = \begin{bmatrix}
\gamma_{1 1} & \gamma_{1 0} \\
\gamma_{0 1} & \gamma_{0 0}
\end{bmatrix},
\shortintertext{and write}
\begin{split}
\Gamma(z, w)
& = \begin{bmatrix} w & 1 \end{bmatrix}
\Gamma
\begin{bmatrix} z \\ 1 \end{bmatrix} \\
& = \gamma_{00} + \gamma_{0 1} z + \gamma_{10} w + \gamma_{11} z w.
\end{split}
\end{gather*}
\end{document}
这使
答案2
一些建议:
环境的内容如
displaymath
自动处于数学模式 - 无需将数学元素括起来$ ...$
。使用
align*
多行未编号方程的环境。
\documentclass{article}
\usepackage{amsmath} % for 'bmatrix' and 'align*' environments
\begin{document}
Let $\Gamma$ be a $2\times2$ Hermitian matrix,
\begin{displaymath}
\Gamma = \begin{bmatrix}
\gamma_{11} & \gamma_{10} \\
\gamma_{01} & \gamma_{00}
\end{bmatrix}\,,
\end{displaymath}
and write
\begin{align*}
\Gamma(z,w) &= \begin{bmatrix} w & 1 \end{bmatrix}
\Gamma
\begin{bmatrix} z \\ 1 \end{bmatrix} \\
&= \gamma_{00}+\gamma_{01}z+\gamma_{10}w+\gamma_{11}zw.
\end{align*}
\end{document}
答案3
使用单一align*
环境的变体和intertext
:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\intertext{Let $\Gamma$ be an $2\times 2$ Hermitian matrix,}
\Gamma =& \begin{bmatrix} \gamma_{11} & \gamma_{10}\\ \gamma_{01} &\gamma_{11}\end{bmatrix},
\intertext{and write}
\Gamma(z,w) =& \begin{bmatrix} w & 1 \end{bmatrix} \Gamma \begin{bmatrix} z \\ 1 \end{bmatrix}\\
=& \gamma_{00}+\gamma_{01}z+\gamma_{10}w+\gamma_{11}zw.
\end{align*}
\end{document}
答案4
这应该会给出所需的输出。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Let $\Gamma$ be a $2\times 2$ Hermitian matrix,
%
\begin{equation*}
\Gamma = \begin{bmatrix}
\gamma_{1 1} & \gamma_{1 0} \\
\gamma_{0 1} & \gamma_{0 0}
\end{bmatrix},
\end{equation*}
%
and write
%
\begin{align*}
\Gamma(z, w) &= \begin{bmatrix} w & 1 \end{bmatrix} \Gamma \begin{bmatrix} z \\ 1 \end{bmatrix} \\
&= \gamma_{0 0} + \gamma_{0 1} z + \gamma_{1 0} w + \gamma_{1 1} z w.
\end{align*}
\end{document}