[Tex/LaTex] Matrices with big zero and lines

matrices

I often need to write matrices with big zeros and lines across the matrix.

enter image description here

  • Does there exist a package to do that easily?

  • What's your strategy or your good habits when you have to write such matrices?

Because, for me, it is always long and difficult and I am not always satisfied with the result.

Thanks for your help.

Best Answer

Here is a manual way

\documentclass[a4paper]{memoir}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}
\usepackage{fix-cm}
\begin{document}
\[
BP=\left(
  \begin{array}{@{} c|c @{}}
    \begin{matrix}
      \quad\text{\fontsize{10mmm}{10mm}\selectfont$0$}\quad
    \end{matrix}
    &
    \begin{matrix}
      b_1\\\vdots\\b_{n-1} 
    \end{matrix}
    \\
    \hline
    & 0
  \end{array}
\right)
\]

\end{document}