Text Formattingtwo matrix in two line

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
strongstorm
Posts: 6
Joined: Tue Nov 25, 2014 10:29 am

two matrix in two line

Post by strongstorm »

hi
how i could write matrix in two line as shown in the attachment
for example want this matrix in two line

Code: Select all

\begin{bmatrix} 1 & 2 \\ 3 & 4  \end{bmatrix}
Attachments
edited to proper markup
edited to proper markup
matrixintwoline.png (1.45 KiB) Viewed 2016 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

two matrix in two line

Post by mas »

Please include a complete compilable example, not just a snippet.

The matrix you want can be typeset using the array environment. See the code below:

Code: Select all

\documentclass{article}
%
\begin{document}

\[
   \begin{array}{cc}
   \left[
      \begin{array}{c}
        1 \\ 3
   \end{array}
   \right.
   \\
   & 
   \left.
      \begin{array}{c}
        2 \\ 4
   \end{array}
   \right]
   \end{array}
\]   

\end{document}

Attachments
x.png
x.png (3.45 KiB) Viewed 2004 times

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Post Reply