Adding a matrix to a Writer document

I am trying to add a matrix to my ODT document, but everything I find is related to the old format of adding a matrix.

I got to Insert > Object > Formula.
I then select the Square Brackets (Scalable).
It then comes up with left [ <?> right ]
I can then add the first row, but I do not know how to add another row?

Libre Office 6.0.73 on Elementary OS

Hello,

matrices in Math module are being created by

left ( matrix { 

a11 # a12 # a13 # ... ## 
a21 # a22 # a23 # ... ##  
a31 # a32 # a33 # ... ##
... # ... # ... # ...
} right )

where # is delimiting column and ## rows.

Please note:

  • The last row must not end with ##.
  • The layout template of matrices is in category Formats -> Matrix Stack

Tested using LibreOffice:

Version: 6.3.3.2, Build ID: a64200df03143b798afd1ec74a12ab50359878ed
CPU threads: 8; OS: Linux 4.12; UI render: default; VCL: kde5;
Locale: en-US (en_US.UTF-8); UI-Language: en-US, Calc: threaded

Hope that helps.

If the answer is correct or helped you to solve your problem, please click the check mark (:heavy_check_mark:) next to the answer.

For a more sophisticated matrix layout, see also this question about block matrix.

A hint: instead of using the GUI, type in the matrix in the Math syntax, such as in the sample above, select the text, and then use Insert → Object → Formula from the menu. Note that you can type in a single line as paragraph breaks will be ignored:

left ( matrix { a11 # a12 # a13 # ... ## a21 # a22 # a23 # ... ##  a31 # a32 # a33 # ... ## ... # ... # ... # ... } right )