MathGroup Archive 2006

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

Search the Archive

Q: How do I format text within a cell of GridBox[]?


Hi,

I run a lot of simulations where I make use of GridBox[] to display a
nice table of my results. Naturally the first call to GridBox is to
display the column headings for my table and the call looks something
like this:


Print[GridBox[{{"Time","Number of Times Parameters Changes
Directions","Error","Parameter #1"}}, ColumnWidths->{5,5,4,6}] //
DisplayForm];

I pretty much got everything formatted correctly except for headings
that consist of more than one word (like the second heading).
Ideally in cases like this I would like Mathematica to automatically
break the sentence into appropriate fragments that fit into the cell
widths defined by ColumnWidths then to center each individual
fragment). Is there a simple way to do this?

Thanks for all your help. I've been puzzling over this one for awhile.

Terry


  • Prev by Date: Re: Forcing surds into the numerator
  • Next by Date: Re: Forcing surds into the numerator
  • Previous by thread: Re: Sequence@@List
  • Next by thread: Re: Q: How do I format text within a cell of GridBox[]?