5

Is there a way to type something like (sorry for the strange picture)

enter image description here

using pmatrix or another method as simple as that? Thanks in advance.

p.s.

I'm able to create

enter image description here

using

\newcommand\bigzero{\makebox(0,0){\text{\huge0}}}
\begin{equation}
\begin{pmatrix}
\begin{matrix} a & b \\ c & d \end{matrix} & \bigzero \\ \bigzero & \begin{matrix} a & b \\ c & d \end{matrix}
\end{pmatrix}
\end{equation}

but I can't type the separators. I know it (and much more complex forms) can be typed using array command, but I want to use the simple matrix commands if possible.

  • 1
    Welcome to TeX.SE. Here, on TeX.Se I saw many similar question. Try to search site in find their solutions. Otherwise, please show, what you try so far and where you stuck. Help us to help you! – Zarko Aug 4 '16 at 7:02
7

Not many possibilities without explicitly using array, I'm afraid:

\documentclass{article}
\usepackage{amsmath}

\newcommand{\bigzero}{\mbox{\normalfont\Large\bfseries 0}}
\newcommand{\rvline}{\hspace*{-\arraycolsep}\vline\hspace*{-\arraycolsep}}

\begin{document}

\[
\begin{pmatrix}
  \begin{matrix}
  a & b \\
  c & d
  \end{matrix}
  & \rvline & \bigzero \\
\hline
  \bigzero & \rvline &
  \begin{matrix}
  a & b \\
  c & d
  \end{matrix}
\end{pmatrix}
\]

\end{document}

enter image description here

With array:

\documentclass{article}
\usepackage{amsmath}

\newcommand{\bigzero}{\mbox{\normalfont\Large\bfseries 0}}

\begin{document}

\[
\left(\begin{array}{@{}c|c@{}}
  \begin{matrix}
  a & b \\
  c & d
  \end{matrix}
  & \bigzero \\
\hline
  \bigzero &
  \begin{matrix}
  a & b \\
  c & d
  \end{matrix}
\end{array}\right)
\]

\end{document}

enter image description here

| improve this answer | |
  • Thank you very much for this extensive solution. The first expression is good enough for me as I can use the new command rvline in all my documents just as easy. – lang Aug 17 '16 at 15:12

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.