我有以下代码,可以生成如图所示的 pdf。但是,它缺少我想要的一些对齐。我知道有一个 systeme 包可能有用,但我发现它不适用于这种情况。那么如何获得我想要的,如红笔所示?
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{babel}
\usepackage{pdflscape}
\usepackage{systeme}
\begin{document}
\begin{landscape}
\begin{align}\label{eq:laplace-qem}
(L_{ijr}^{T}L_{ijr}+\left[\begin{array}{cc}q_{11} & 0\\0 & 0 \end{array}\right])\mathbf{v}_{er,x}
+\left[\begin{array}{cc}q_{12} & 0\\0 & 0 \end{array}\right]\mathbf{v}_{er,y}
+\left[\begin{array}{cc}q_{13} & 0\\0 & 0 \end{array}\right]\mathbf{v}_{er,z}
+\left[\begin{array}{c}v_{e,g}q_{14}+q_{15}\\0\end{array}\right]
+L_{ijr}^{T}b_{x} = 0 \\
\left[\begin{array}{cc}q_{12} & 0\\0 & 0\end{array}\right]\mathbf{v}_{er,x}
+(L_{ijr}^{T}L_{ijr}+\left[\begin{array}{cc}q_{22} & 0\\0 & 0\end{array}\right])\mathbf{v}_{er,y}
+\left[\begin{array}{cc}q_{23} & 0\\0 & 0\end{array}\right]\mathbf{v}_{er,z}
+\left[\begin{array}{c}v_{e,g}q_{24}+q_{25}\\0\end{array}\right]
+L_{ijr}^{T}b_{y} = 0 \\
\left[\begin{array}{cc}q_{13} & 0\\0 & 0\end{array}\right]\mathbf{v}_{er,x}
+\left[\begin{array}{cc}q_{23} & 0\\0 & 0\end{array}\right]\mathbf{v}_{er,y}
+(L_{ijr}^{T}L_{ijr}+\left[\begin{array}{cc}q_{33} & 0\\0 & 0\end{array}\right])\mathbf{v}_{er,z}
+\left[\begin{array}{c}v_{e,g}q_{34}+q_{35}\\0\end{array}\right]
+L_{ijr}^{T}b_{z} = 0 \\
\left[\begin{array}{cc}q_{14} & 0\end{array}\right]\mathbf{v}_{er,x}
+\left[\begin{array}{cc}q_{24} & 0\end{array}\right]\mathbf{v}_{er,y}
+\left[\begin{array}{cc}q_{34} & 0\end{array}\right]\mathbf{v}_{er,z}
+q_{44}v_{e,g}
+q_{45} = 0
\end{align}
\end{landscape}
\end{document}
答案1
要删除公式编号,请使用环境align*
。要在某些位置对齐,请使用符号&
。您可以查看amsmath
软件包的第 4 页文档查看如何对齐不同方程式的示例。我还借此机会插入\left(
并根据数组\right)
设置正确的大小。查看更新的示例,该示例可满足您的要求。()
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{babel}
\usepackage{pdflscape}
\usepackage{systeme}
\begin{document}
\begin{landscape}
\begin{align*}\label{eq:laplace-qem}
\left(L_{ijr}^{T}L_{ijr}+\left[\begin{array}{cc}q_{11} & 0\\0 & 0 \end{array}\right]\right)&\mathbf{v}_{er,x}&
+\left[\begin{array}{cc}q_{12} & 0\\0 & 0 \end{array}\right]&\mathbf{v}_{er,y}&
+\left[\begin{array}{cc}q_{13} & 0\\0 & 0 \end{array}\right]&\mathbf{v}_{er,z}&
+\left[\begin{array}{c}v_{e,g}q_{14}+q_{15}\\0\end{array}\right]
+L_{ijr}^{T}b_{x} = 0 \\
\left[\begin{array}{cc}q_{12} & 0\\0 & 0\end{array}\right]&\mathbf{v}_{er,x}&
+\left(L_{ijr}^{T}L_{ijr}+\left[\begin{array}{cc}q_{22} & 0\\0 & 0\end{array}\right]\right)&\mathbf{v}_{er,y}&
+\left[\begin{array}{cc}q_{23} & 0\\0 & 0\end{array}\right]&\mathbf{v}_{er,z}&
+\left[\begin{array}{c}v_{e,g}q_{24}+q_{25}\\0\end{array}\right]
+L_{ijr}^{T}b_{y} = 0 \\
\left[\begin{array}{cc}q_{13} & 0\\0 & 0\end{array}\right]&\mathbf{v}_{er,x}&
+\left[\begin{array}{cc}q_{23} & 0\\0 & 0\end{array}\right]&\mathbf{v}_{er,y}&
+\left(L_{ijr}^{T}L_{ijr}+\left[\begin{array}{cc}q_{33} & 0\\0 & 0\end{array}\right]\right)&\mathbf{v}_{er,z}&
+\left[\begin{array}{c}v_{e,g}q_{34}+q_{35}\\0\end{array}\right]
+L_{ijr}^{T}b_{z} = 0 \\
\left[\begin{array}{cc}q_{14} & 0\end{array}\right]&\mathbf{v}_{er,x}&
+\left[\begin{array}{cc}q_{24} & 0\end{array}\right]&\mathbf{v}_{er,y}&
+\left[\begin{array}{cc}q_{34} & 0\end{array}\right]&\mathbf{v}_{er,z}&
+q_{44}v_{e,g}
+q_{45} = 0
\end{align*}
\end{landscape}
\end{document}
答案2
这应该是一个array
;注意,它能bmatrix
给出比矩阵更好的结果array
。
\documentclass[english]{article}
\usepackage{amsmath}
\usepackage{babel}
\usepackage{pdflscape,array}
\begin{document}
\begin{landscape}
\[
\begin{array}{
@{}
r % coefficient
@{}
l % variable
@{}
*{2}{>{{}}r@{}l@{}} % two similar groups
>{{}}r % other terms
@{}
>{{}}l % equals 0
}
\left(L_{ijr}^{T}L_{ijr}+\begin{bmatrix}q_{11} & 0\\0 & 0 \end{bmatrix}\right)&\mathbf{v}_{er,x}&
+\begin{bmatrix}q_{12} & 0\\0 & 0 \end{bmatrix}&\mathbf{v}_{er,y}&
+\begin{bmatrix}q_{13} & 0\\0 & 0 \end{bmatrix}&\mathbf{v}_{er,z}&
+\begin{bmatrix}v_{e,g}q_{14}+q_{15}\\0\end{bmatrix}
+L_{ijr}^{T}b_{x} &= 0 \\[3.5ex]
\begin{bmatrix}q_{12} & 0\\0 & 0\end{bmatrix}&\mathbf{v}_{er,x}&
+\left(L_{ijr}^{T}L_{ijr}+\begin{bmatrix}q_{22} & 0\\0 & 0\end{bmatrix}\right)&\mathbf{v}_{er,y}&
+\begin{bmatrix}q_{23} & 0\\0 & 0\end{bmatrix}&\mathbf{v}_{er,z}&
+\begin{bmatrix}v_{e,g}q_{24}+q_{25}\\0\end{bmatrix}
+L_{ijr}^{T}b_{y} &= 0 \\[3.5ex]
\begin{bmatrix}q_{13} & 0\\0 & 0\end{bmatrix}&\mathbf{v}_{er,x}&
+\begin{bmatrix}q_{23} & 0\\0 & 0\end{bmatrix}&\mathbf{v}_{er,y}&
+\left(L_{ijr}^{T}L_{ijr}+\begin{bmatrix}q_{33} & 0\\0 & 0\end{bmatrix}\right)&\mathbf{v}_{er,z}&
+\begin{bmatrix}v_{e,g}q_{34}+q_{35}\\0\end{bmatrix}
+L_{ijr}^{T}b_{z} &= 0 \\[3.5ex]
\begin{bmatrix}q_{14} & 0\end{bmatrix}&\mathbf{v}_{er,x}&
+\begin{bmatrix}q_{24} & 0\end{bmatrix}&\mathbf{v}_{er,y}&
+\begin{bmatrix}q_{34} & 0\end{bmatrix}&\mathbf{v}_{er,z}&
+q_{44}v_{e,g}
+q_{45} &= 0
\end{array}
\]
\end{landscape}
\end{document}