행렬 안의 행렬

행렬 안의 행렬

나는 다음과 같은 것을 만들려고합니다 :여기에 이미지 설명을 입력하세요

지금까지는 하나의 항목에만 행렬을 만들 수 있습니다. 어떻게 해야 할까요?

무초스 그라시아스!

답변1

의 .{pNiceMatrix}nicematrix

\documentclass[12pt]{article}
\usepackage{nicematrix}

\begin{document}

\[\begin{pNiceMatrix}
X_{11} & X_{12} & \Cdots &  X_{1n} \\
X_{21} & \Block{3-3}<\Large>{B} \\
\Vdots \\
X_{1n} \\
\CodeAfter
  \SubMatrix[{2-2}{4-4}][xshift=-1ex,extra-height=-1ex]
\end{pNiceMatrix}\]

\end{document}

여러 컴파일이 필요합니다( nicematrix내부적으로 PGF/Tikz 노드를 사용하기 때문에).

위 코드의 출력

답변2

오직amsmath

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\begin{bmatrix}
  x_{11} & \begin{matrix} x_{12} & \dots & x_{1n} \end{matrix} \\
  \begin{matrix} x_{21} \\ \vdots \\ x_{n1} \end{matrix}  &
  \begin{bmatrix}
  \hspace*{-\arraycolsep}
  \phantom{x_{11}} & \phantom{x_{11}} & \phantom{x_{11}}
  \hspace*{-\arraycolsep}
  \\
  & \raisebox{-0.2\height}[0pt][0pt]{\LARGE$B$} & \\
  & &
  \end{bmatrix}
\end{bmatrix}
\]

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보