0

When I try to use

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{arydshln}
\begin{document}
\[\left[
    \begin{array}{c:c:c}
        \begin{bmatrix}A_l& A_{nl}\end{bmatrix} & B_r & \begin{bmatrix}B_l& B_{nl}\end{bmatrix} \\
        \hdashline
        C &0&0
    \end{array}
    \right]\]
\end{document}

I get:

enter image description here

In this, how can I ensure that the dotted vertical lines stay within the top and bottom bounds defined by the left-right brackets?

1 Answer 1

2

A solution with bigstrut to slightly increase the brackets size. Icing on the cake: the horizontal dash line has some vertical padding.

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{bigstrut}
\usepackage{arydshln}

\begin{document}

\[ \left[
    \begin{array}{c:c:c}
        \begin{bmatrix}A_l& A_{nl}\end{bmatrix} & B_r & \begin{bmatrix}B_l& B_{nl}\end{bmatrix} \bigstrut\\
        \hdashline
        C &0&0 \bigstrut[t]
    \end{array}
    \right] \]

\end{document} 

enter image description here

6
  • Works perfectly! Also, if possible, could you briefly explain the usage of bigstut[.]? This is, atleast to me, a completely a new package. Commented Aug 20, 2018 at 8:27
  • I think this answers my previous question (tex.stackexchange.com/questions/446772/…) :D here the vertical dashed lines are still going out of the bracket heights: Commented Aug 20, 2018 at 8:32
  • 1
    It's a package which comes with multirow. Fundamentally it adds a fixed height and depth to a row cell. This added length is \bigstrutjot which defaults to 2pt. You also can use an optional argument: [t] (acts on the height only) or [b] (acts on the depth).
    – Bernard
    Commented Aug 20, 2018 at 8:33
  • Understood in a basic level. Commented Aug 20, 2018 at 8:34
  • 1
    The dashes are still going out of the inner brackets, not the outer brackets. If you think the difference with the outer brackets is not enough, you can set \bigstrutjot to, say, 3pt.
    – Bernard
    Commented Aug 20, 2018 at 8:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .