Vertical lines in the middle of a matrix

Discuss the formula editor
Post Reply
antz
Posts: 1
Joined: Sat Feb 28, 2009 10:25 pm

Vertical lines in the middle of a matrix

Post by antz »

Hello

Is there a way of adding a vertical line, bordering the whole of column, to some point within a matrix.
As a work around i've been diving everything up into two or more matrices and using the mline command, however in the example below, because one of the elements is larger, so the rows are no longer in line.

Code: Select all

left [matrix{
1 # matrix {2 # 3} overbrace "stuff" # 4 # 5 ##
6 # matrix {7 # 8} # 9 # 10
}
mline stack{11 # 12} mline matrix{13 ## 14}
right ]
i.e. in that example, 11 and 13 will be slightly above 1, 2, 3, 4, 5

*Also and this is really an additional question but is there a way of adding an overbrace like i have done in that example but without the internal matrix*

Many Thanks

Anthony
OOo 3.0.X on Ms Windows XP
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: vertical lines in the middle of a matrix

Post by RGB »

Something like this?:

Code: Select all

left[
stack{1 # 6}
right none ~
matrix{2 # 3 ## 7 # 8} overbrace "stuff"
~ left none
matrix{4 # 5 ## 9 # 10}
mline
stack{11 # 12}
right rline
left none
stack{13 # 14}
right]
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Vertical lines in the middle of a matrix

Post by acknak »

Here's a variation on RGB's approach that seems to space a little more evenly...
  • left [ `
     stack{ 1 #  6} ~ right none
     {
     stack{ 2 #  7} ~
     stack{ 3 #  8}
     } overbrace "stuff"
     left none ~
     stack{ 4 #  9} ~
     stack{ 5 # 10} ` mline `
     stack{11 # 12} ` mline `
     stack{13 # 14} `
    right ]
AOO4/LO5 • Linux • Fedora 23
Post Reply