View Single Post
  #2  
Old November 24th, 2008, 07:42 AM
Opalg's Avatar
Opalg Opalg is offline
MHF Contributor

 
Join Date: Aug 2007
Location: Leeds, UK
Posts: 2,065
Country:
Thanks: 126
Thanked 1,262 Times in 1,049 Posts
Opalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant futureOpalg has a brilliant future
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