Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > Math Help Forum Lounge > LaTex Help
Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2008, 06:47 AM
Newbie
 
Join Date: Nov 2008
Posts: 2
Country:
Thanks: 0
Thanked 0 Times in 0 Posts
Lucimeire83 is on a distinguished road
Default Latex: Determinant

Hi

I'm trying to add some braces above/below and left/right of a Determinant to describe how many Columns and Rows certain ranges of the matrix has.
For example I have a 2 by 2 Block-matrix. I want a brace over the first and the one over the second column telling me how large each blockdeterminant is.


I hope someone knows a solution to this problem.

Reply With Quote
Advertisement
 
  #2  
Old 11-24-2008, 07:42 AM
Opalg's Avatar
Super Member
 
Join Date: Aug 2007
Location: Leeds, UK
Posts: 978
Country:
Thanks: 56
Thanked 556 Times in 456 Posts
Opalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to behold
Default

Plain TeX has a macro called \bordermatrix that lets you put labels above the columns and to the left of the rows. It can give you things like this:

M =   \bordermatrix{&\overbrace{}^{\textstyle m}&\overbrace{}^{\textstyle n}\cr p\{&A&B\cr q\{&C&D\cr}

Code:
 M = \bordermatrix{&\overbrace{}^{\textstyle m}
 &\overbrace{}^{\textstyle n}\cr 
 p\{ &A&B\cr q\{ &C&D\cr}
As far as I know, there is no LaTeX version of this, so you have to use the plain TeX syntax, with for example \cr instead of \\ for the carriage returns.
Reply With Quote
The following users thank Opalg for this useful post:
Donate to MHF
  #3  
Old 11-24-2008, 08:28 AM
Newbie
 
Join Date: Nov 2008
Posts: 2
Country:
Thanks: 0
Thanked 0 Times in 0 Posts
Lucimeire83 is on a distinguished road
Default

OPALG, Thank you for your help, but I think that \bracematrix use just for matrix and I want to use for a determinant.
Reply With Quote
  #4  
Old 11-24-2008, 02:58 PM
Opalg's Avatar
Super Member
 
Join Date: Aug 2007
Location: Leeds, UK
Posts: 978
Country:
Thanks: 56
Thanked 556 Times in 456 Posts
Opalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to beholdOpalg is a splendid one to behold
Default

Ahem, yes. You'd think I might have noticed that very conspicuous bolded word Determinant

So, the best I can do is a really ugly kludge that produces \begin{array} {r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}}|} \multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\textstyle m} \overbrace{}^{\textstyle n}} \\ p\,\{&A&B\\ q\,\{&C&D \end{array}.

Code:
\begin{array}
{r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}}|}
\multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\textstyle m}
\overbrace{}^{\textstyle n}} \\  p\,\{&A&B\\ q\,\{&C&D \end{array}
This has the drawback that it isn't well aligned vertically. If you want to put it in a formula like M = \begin{array} {r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}}|} \multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\textstyle m} \overbrace{}^{\textstyle n}} \\ p\,\{&A&B\\ q\,\{&C&D \end{array} then you'll want to raise it by putting it into an \hbox along with a \raise command, as in
M = \raise2ex\hbox{$\begin{array}{r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}}|}\multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\textstyle m} \overbrace{}^{\textstyle n}} \\ p\,\{&A&B\\ q\,\{&C&D \end{array}$}.

Last edited by Opalg; 11-24-2008 at 03:15 PM. Reason: fussing around making cosmetic adjustments
Reply With Quote
The following users thank Opalg for this useful post:
Donate to MHF
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 03:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2008 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.