Ask LibreOffice - RSS feedhttps://ask.libreoffice.org/en/questions/Questions and answers for LibreOfficeenWed, 21 Aug 2019 18:59:46 +0200block matrixhttps://ask.libreoffice.org/en/question/205640/block-matrix/Hi All,
Is there any way to display a block matrix in LibreOffice Math?
Let say I have a 4x4 matrix, I want to display a vertical dotted line that separates the first two columns from the last two columns and a horizontal dotted line that separates the first two rows from the last two rows so as to have four different 2x2 matrices that make up the 4x4 block matrix. How do I do that?
Thanks,
Daniel
Wed, 21 Aug 2019 18:18:04 +0200https://ask.libreoffice.org/en/question/205640/block-matrix/Answer by ajlittoz for <p>Hi All,</p>
<p>Is there any way to display a block matrix in LibreOffice Math?</p>
<p>Let say I have a 4x4 matrix, I want to display a vertical dotted line that separates the first two columns from the last two columns and a horizontal dotted line that separates the first two rows from the last two rows so as to have four different 2x2 matrices that make up the 4x4 block matrix. How do I do that?</p>
<p>Thanks,</p>
<p>Daniel</p>
https://ask.libreoffice.org/en/question/205640/block-matrix/?answer=205643#post-id-205643This is a bit tedious. The trick is to add new matrix elements (cells) where you insert your "decorations". Here's what it looks like:
![matrix with dotted lines](/upfiles/1566406709511683.png)
The formula is structured as:
left [ -- left outer bracket
matrix { -- outer matrix
matrix { left [ { a # b ## c # d } right ] -- NW element
# dotsvert -- fake top center element
# left [ B right ] -- NE element
## dotsaxis # ` # dotsaxis -- fake center row
## -- next row
left [ C right ] -- SW element
# dotsvert -- fake bottom center element
# left [ D right ] -- SE element
} -- close outer matrix
right ] -- right outer bracket
I added comments with `--`, but this is not part of Math syntax.
Eventually, you can "dim" the dots with `silver attributes` if you find them too bold.
*To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!*Wed, 21 Aug 2019 18:59:46 +0200https://ask.libreoffice.org/en/question/205640/block-matrix/?answer=205643#post-id-205643