我试图将 2 行 bmatrix 拆分成两行,但没有成功。你能帮我拆分矩阵吗?这是我想要得到的效果:
这是我的代码:
\documentclass[11pt]{book}
\usepackage{amsmath,amsfonts,amssymb,amsthm, bm}
\begin{document}
\begin{equation}\label{theta}
\begin{split}
\begin{bmatrix}
x\\
y
\end{bmatrix} & =
\begin{bmatrix}
\left(L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ}\right)\cos(\theta_{1}+ \delta\theta_{1})\\
\left(L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ}\right)\sin(\theta_{1}+ \delta\theta_{1})
\end{bmatrix}\\
&\qquad\qquad \begin{bmatrix}+(\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\sin(\theta_{1} + \delta\theta_{1})\\
- (\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\cos(\theta_{1} + \delta\theta_{1})
\end{bmatrix}
\end{split}
\end{equation}
\end{document}
答案1
我不会推低左侧,因此我提供两种渲染。
\documentclass[11pt]{book}
\usepackage{amsmath,amsfonts,amssymb,amsthm, bm}
\begin{document}
\begin{equation}\label{theta}
\begin{bmatrix}
x\\
y
\end{bmatrix} =
\!\begin{aligned}
&
\left[\begin{matrix}
L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ})\cos(\theta_{1}+ \delta\theta_{1})\\
L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ})\sin(\theta_{1}+ \delta\theta_{1})
\end{matrix}\right.\\
&\qquad\qquad
\left.\begin{matrix}
{}+(\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\sin(\theta_{1} + \delta\theta_{1})\\
{}-(\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\cos(\theta_{1} + \delta\theta_{1})
\end{matrix}\right]
\end{aligned}
\end{equation}
\begin{equation}\label{theta-alt}
\begin{aligned}
\begin{bmatrix}
x\\
y
\end{bmatrix} &=
\left[\begin{matrix}
L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ})\cos(\theta_{1}+ \delta\theta_{1})\\
L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ})\sin(\theta_{1}+ \delta\theta_{1})
\end{matrix}\right.\\
&\qquad\qquad
\left.\begin{matrix}
{}+(\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\sin(\theta_{1} + \delta\theta_{1})\\
{}-(\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\cos(\theta_{1} + \delta\theta_{1})
\end{matrix}\right]
\end{aligned}
\end{equation}
\end{document}
请注意,我删除了多余的\left(
和。还请注意将加号和减号变成二进制运算符号的\right)
附加组。{}
我会考虑将加号和减号保留在顶行,以清楚地表明公式尚未结束。
答案2
我宁愿使用占位符(例如\omega
for \theta_{1}+ \delta\theta_{1}
(根据您的需要更改名称)并在之后进行解释;这样,您的表达式就适合一行,这是一个更好的选择:
\documentclass[11pt]{book}
\usepackage{amsmath,amsfonts,amssymb,amsthm, bm}
\begin{document}
\begin{equation}\label{theta}
\begin{bmatrix}
x\\
y
\end{bmatrix} =
\begin{bmatrix}
(L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ} )\cos\omega + ( \delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\sin \omega \\
(L_{1} + \delta r_{3v} + r_{3v} + \Delta r_{3}^{\circ} )\sin\omega - (\delta r_{2v} + r_{2v} + \Delta r_{3}^{\circ})\cos \omega
\end{bmatrix},
\end{equation}
where $\omega=\theta_{1}+ \delta\theta_{1}$.
\end{document}
我还抑制了一些不必要的\left
对\right
。