定心矩阵

定心矩阵

有人知道如何使以下矩阵居中吗?(等式 3.7.14)以及如何在向量元素之间添加空格(等式 3.7.13)?

\begin{equation}\label{3.7.13}
{\vec{T}_{1}}^\intercal=[T_{a} && T_{1}&T_{2} & \cdots & T_{N-1}  & T_{N} & T_{b}] 
\end{equation}

\begin{equation}\label{3.7.14}
\mathbf{A}_{1}=
\begin{bNiceMatrix}
-h_{a}S & h_{a}S               &0            &\Cdots  & & &0 \\
h_{a}S  & -h_{a}S-\alpha_{1,2} & \alpha_{1,2} & \Cdots & && 0 \\
0       & \alpha_{1,2}         & -\alpha_{1,2}-\alpha_{2,3}& \alpha_{2,3} & \Cdots && 0\\
\Vdots      & \Vdots   &\Ddots &\Ddots & &&\Vdots\\
0&0& \Cdots & \alpha_{N-2,N-1} & -\alpha_{N-2,N-1}-\alpha_{N-1,N} &\alpha_{N-1,N}&0\\
0 &&& \Cdots & \alpha_{N-1,N} & h_{b}S-\alpha_{N-1,N}  & h_{b}S\\
0 & && \Cdots & & h_{b}S & -h_{b}S
\end{bNiceMatrix}
\end{equation}

在此处输入图片描述

答案1

正如我在评论中提到的可能性之一,是局部增加文本宽度:

在此处输入图片描述

(红线表示页面布局)

\documentclass{article}
\usepackage{geometry}
\usepackage[strict]{changepage}
\usepackage{nicematrix}
\usepackage{amssymb}

%---------------- Show page layout. Don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\usepackage{lipsum}% For dummy text. Don't use in a real document

\begin{document}
\lipsum[11]
\begin{equation}\label{3.7.13}
\vec{T}_{1}^\intercal
    =[T_{a} T_{1} T_{2} \cdots T_{N-1} T_{N} T_{b}]
\end{equation}
%
    \begin{adjustwidth}{-4em}{-3em}
\begin{equation}\label{3.7.14}
\mathbf{A}_{1}=
\begin{bNiceMatrix}
-h_{a}S & h_{a}S               &0            &\Cdots  & & &0 \\
h_{a}S  & -h_{a}S-\alpha_{1,2} & \alpha_{1,2} & \Cdots & && 0 \\
0       & \alpha_{1,2}         & -\alpha_{1,2}-\alpha_{2,3}& \alpha_{2,3} & \Cdots && 0\\
\Vdots      & \Vdots   &\Ddots &\Ddots & &&\Vdots\\
0&0& \Cdots & \alpha_{N-2,N-1} & -\alpha_{N-2,N-1}-\alpha_{N-1,N} &\alpha_{N-1,N}&0\\
0 &&& \Cdots & \alpha_{N-1,N} & h_{b}S-\alpha_{N-1,N}  & h_{b}S\\
0 & && \Cdots & & h_{b}S & -h_{b}S
\end{bNiceMatrix}
\end{equation}
    \end{adjustwidth}
\lipsum[12]
\end{document}

相关内容