I'd like to create a matrix like this:

$$ \begin{bmatrix}
    a & b' \\
    b & D
\end{bmatrix} $$

but I'd like to indicate that the size of vector b and put it like on two fields, horizontally or vertically. The same with matrix D which I'd like to put like a 2×2 matrix with a name in the center.


  • 3
    Welcome to TeX.SX! Could you please complete your code in order to make a minimal working example (MWE) that inlcudes the relevant packages as well as the documentclass? Could you please also include a sketch of the output you'd like to achieve?
    – leandriis
    Mar 2 '19 at 14:26
  • 1
    Now it is good that you already provided an MWE, so I upvoted your question, but I can't still get it. Please add a sketch showing what you want.
    – user156344
    Mar 2 '19 at 14:36
  • Thank you for helping me with my first post. I have some experience at other community where it would automatically compile. Polish one.
    – lelel
    Mar 2 '19 at 14:40
  • You remember that $$...$$ is TeX primitive syntax.
    – Sebastiano
    Mar 2 '19 at 16:56
  • @Sebastiano what does it mean?
    – lelel
    Mar 2 '19 at 17:24

I pretend that the second item in the first row is as wide as two normal columns. Similarly, the second item in the second row is as tall as two normal rows.



\sbox0{$\begin{matrix} D & D\end{matrix}$}
a & \mathmakebox[\wd0]{b'} \\
b & \vphantom{\begin{matrix} D \\ D \end{matrix}} D


enter image description here

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.