答案1
答案2
array
我会用嵌套的来实现pmatrix
:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools, bigstrut}
\begin{document}%
\[ \begin{bmatrix}
\begin{array}{@{}cccc|c@{}}
a_{11}&a_{12}& \cdots &a_{1n} & b_1 \bigstrut[t] \\
\vdots & \vdots & \ddots& \vdots & \vdots \\
a_{m1}&a_{n2}& \cdots &a_{mn} & b_n \bigstrut[b]
\end{array}\end{bmatrix} \]
\end{document}