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
You could do something like the following. First we write a general
MatrixStyle[opts___][mat_] := StyleForm[MatrixForm[mat], opts]
We could use it directly, but more often you will want a shorter special
MatrixForm8 = MatrixStyle[FontSize -> 8, FontFamily -> "Helvetica"];
testmat = IdentityMatrix;
Using the general definition...
testmat // MatrixStyle[FontSize -> 8, FontFamily -> "Helvetica"]
Using the short definition.
testmat // MatrixForm8
djmp at earthlink.net
From: TerryH [mailto:tharter at attglobal.net]
To: mathgroup at smc.vnet.net
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?
Prev by Date:
Re: Factoring problem
Next by Date:
Re: Traveling Salesman
Previous by thread:
Constructing a Special Form for 'MatrixForm'
Next by thread: