
답변1
여기 있어요:
\documentclass{article}
\usepackage{mathtools} %
\begin{document}
\[ \renewcommand{\arraystretch}{1.4}
\begin{bmatrix}
s + 3 & 1 & 0 & \vrule & 1 & 0 & 0 \\
-2 & s & 0 & \vrule & 0 & 1 & 0 \\
1 & 0 & a & \vrule & 0 & 0 & 1
\end{bmatrix}
\]
\end{document}
편집하다: 또 다른 가능성은 blkarray
및 bigstrut
:
\[
\setlength{\BAextrarowheight}{3pt}
\setlength{\bigstrutjot}{1ex}
\begin{blockarray}{[ccc|ccc]}
s + 3 & 1 & 0 & 1 & 0 & 0 \bigstrut[t]\\
-2 & s & 0 & 0 & 1 & 0 \\
1 & 0 & a & 0 & 0 & 1 \bigstrut[b]
\end{blockarray}
\]
답변2
답변3
편집: 2020-7-18여기에 내 제안이 있습니다.nicematrix
패키지. @F 님의 댓글이 기억납니다. Pantigny 버전 5.0 c
부터는 C
.
\documentclass[a4paper,12pt]{article}
\usepackage{nicematrix}
\begin{document}
$\begin{bNiceArray}{ccc|ccc}
s+3 & 1 & 0 & 1 & 0 & 0 \\
-2 & s & 0 & 0 & 1 & 0 \\
1 & 0 & s & 1 & 0 & 1
\end{bNiceArray}$
\end{document}