[Tex/LaTex] Can you put two matrices in display mode side by side in LyX

lyxmath-modematrices

I have two matrices, and I want to render them side by side with appropriate space in between in display mode. How should it be implemented in LyX?

Best Answer

No idea how things are in LyX, but here's one way to do it using LaTeX:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
  A=
  \begin{bmatrix}
    0 & 1 & 1 \\
    1 & 0 & 1
  \end{bmatrix}\quad
  B=
  \begin{bmatrix}
    1 & 0 & 0 \\
    0 & 1 & 0
  \end{bmatrix}
\]

\end{document}

enter image description here