# How can I output this special matrix?

I want to output a special matrix like this:

But, I don't know how to do this.

Thanks very much!

• Welcome! What have you tried? – cfr Jun 3 '18 at 1:16
• Do you have any code to show, yet? Please provide an MWE and we can work on it. When you will have worked out an MWE, rephrase your quesion to make it more specific. The block tag look misplaced, too. – thymaro Jun 3 '18 at 1:29

I propose three variant: in display style, medium size (with the \medmathcommand from nccmath – ca 80 % of display style) and supposedly text style with the psmallmatrix(*) defined by mathtools. Of course, with four rows, this will enlarge the line spacing locally.

\documentclass{article}
\usepackage{mathtools, nccmath}
\usepackage{array}

\begin{document}

$\setlength{\arraycolsep}{3pt} A' = \begin{pmatrix} & & & & & & & 0\\ \multicolumn{7}{c}{\raisebox{-1.5ex}{\smash{\hugeA}}} & 0 \\[-1.5ex] & & & & & & & ⋮ \\ 0 & 0 & \hdotsfor{5} &0 \end{pmatrix}$

$\setlength{\arraycolsep}{2pt} A' = \medmath{\begin{pmatrix} & & & & & & & 0\\ \multicolumn{7}{c}{\raisebox{-1.5ex}{\smash{\LargeA}}} & 0 \\[-1.5ex] & & & & & & & ⋮ \\[-0.5ex] 0 & 0 & \hdotsfor{5} \!&0 \end{pmatrix}}$

Some text. Some more text. An in-text matrix $A' = \begin{psmallmatrix} & & & & 0\\[0.5ex] \multicolumn{4}{c}{\raisebox{-1.5ex}{\smash{\large$A$}}} & 0 \\[-2.3ex] & & & & \vdots \\[0.4ex] 0 & 0 & \!\hdots\! &\! \hdots\! & 0 \end{psmallmatrix}$
\end{document}


• It's OK. But it' s too big, I want it be small and can output among the text. I replaced the pmatrix by smallmatrix, but I failed. Can you help me again? THKS – chen chen Jun 3 '18 at 2:29
• @chenchen: I've added two variants to the initial code. Please see if it's more like you want. – Bernard Jun 3 '18 at 10:06