Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Constructing a Special Form for 'MatrixForm'

  • To: mathgroup at
  • Subject: [mg35508] RE: [mg35484] Constructing a Special Form for 'MatrixForm'
  • From: "David Park" <djmp at>
  • Date: Wed, 17 Jul 2002 02:08:56 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


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[5];

Using the general definition...

testmat // MatrixStyle[FontSize -> 8, FontFamily -> "Helvetica"]

Using the short definition.

testmat // MatrixForm8

David Park
djmp at

From: TerryH [mailto:tharter at]
To: mathgroup at

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?

  • Prev by Date: Re: Factoring problem
  • Next by Date: Re: Traveling Salesman
  • Previous by thread: Constructing a Special Form for 'MatrixForm'
  • Next by thread: Traveling Salesman