RE: Constructing a Special Form for 'MatrixForm'
- To: mathgroup at smc.vnet.net
- Subject: [mg35508] RE: [mg35484] Constructing a Special Form for 'MatrixForm'
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 17 Jul 2002 02:08:56 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Terry, You could do something like the following. First we write a general definition. MatrixStyle[opts___][mat_] := StyleForm[MatrixForm[mat], opts] We could use it directly, but more often you will want a shorter special definition. MatrixForm8 = MatrixStyle[FontSize -> 8, FontFamily -> "Helvetica"]; testmat = IdentityMatrix[5]; Using the general definition... testmat // MatrixStyle[FontSize -> 8, FontFamily -> "Helvetica"] Using the short definition. testmat // MatrixForm8 David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: TerryH [mailto:tharter at attglobal.net] To: mathgroup at smc.vnet.net Hi All: Is it possible to construct a special form of MatrixForm (say MatrixForm8) that does the same thing as the default version of MatrixForm except that an 8 point font size is used, and maybe a different font type is used? How would one go about this? Of course I would want the default version of MatrixForm to perform as it always does. That way I can pick and choose which I want to invoke on any matrix expression. I need this to help in displaying long symbolic elements of a 3x3 matrix. Thanks in advance to all who reply? .....Terry