1

This is a followup to this question.

MWE (given by Henri Menke in the linked post):

\documentclass{article}
\usepackage{blkarray}
\begin{document}
\[
  \left[
  \begin{blockarray}{ccccccc}
    \begin{block}{[ccc]cccc}
      I_p \\
      & \ddots \\
      & & I_p \\
    \end{block}
    \begin{block}{c[ccc]ccc}
      & I_p \\
      & & \ddots \\
      & & & I_p \\
    \end{block}
    & & & \vdots & \ddots \\
    & & & \ddots & \vdots \\
    \begin{block}{cccc[ccc]}
      & & & & I_p \\
      & & & & & \ddots \\
      & & & & & & I_p \\
    \end{block}
  \end{blockarray}
  \right]
\]
\end{document}

This produces this: enter image description here

This is almost what I want, except the brackets produced by \left[ and \right are too long on the bottom. I feel like there must be a way to do this exclusively in a blockarray, but the documentation for the package is not extensive enough that it has quickly led me to such a solution.

2

blkarray is so weird....

enter image description here

\documentclass{article}
\usepackage{blkarray}
\addtolength\textwidth{25pt}
\begin{document}
\[
  \left[
  \begin{blockarray}{ccccccc}
    \begin{block}{[ccc]cccc}
      I_p \\
      & \ddots \\
      & & I_p \\
    \end{block}
    \begin{block}{c[ccc]ccc}
      & I_p \\
      & & \ddots \\
      & & & I_p \\
    \end{block}
    & & & \vdots & \ddots \\
    & & & \ddots & \vdots \\
    \begin{block}{cccc[ccc]}
      & & & & I_p \\
      & & & & & \ddots \\
      & & & & & & I_p \\
    \end{block}
  \end{blockarray}
  \right]
+
 \left[
  \begin{blockarray}{ccccccc}
    \begin{block}{[ccc]cccc}
      I_p \\
      & \ddots \\
      & & I_p \\
    \end{block}
    \begin{block}{c[ccc]ccc}
      & I_p \\
      & & \ddots \\
      & & & I_p \\
    \end{block}
    & & & \vdots & \ddots \\
    & & & \ddots & \vdots \\
    \begin{block}{cccc[ccc]}
      & & & & I_p \\
      & & & & & \ddots \\
      & & & & & & I_p \\
    \end{block}
    \BAnoalign{\vspace{-20pt}}
  \end{blockarray}
  \right]
\]
\end{document}
  • You should contact the author of blkarray about this. ;) – Henri Menke Feb 22 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.