Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: Formatting a Cell Programmatically

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116789] Re: Formatting a Cell Programmatically
  • From: "Hans Michel" <hmichel at cox.net>
  • Date: Mon, 28 Feb 2011 05:00:15 -0500 (EST)

I would throw in TableForm in these examples. If I take the trouble to
format the Cells or output, I would go all out.

Using John's response throw in a header and alignment.

CellPrint[
 ExpressionCell[
  TableForm[Table[{x, Sqrt[x], x^3}, {x, 0, 100}], 
   TableHeadings -> {None, {"x", "Sqrt(x)", "x^3"}}, 
   TableAlignments -> Right], CellFrame -> True, 
  Background -> LightBrown]]

Using Helen's response do the same.

Framed[Style[
  TableForm[Table[{x, Sqrt[x], x^3}, {x, 0, 100}] , 
   TableHeadings -> {None, {"x", "Sqrt(x)", "x^3"}} , 
   TableAlignments -> Right], Background -> LightBrown], 
 Background -> LightBrown]

These are good examples of dynamic and static styling of output.

These types of outputs are the reason we need front end multiple column
output in a compartment region, with minimum programming instructions by
user. Who wants to Scroll? 

Hans
-----Original Message-----
From: alex smith [mailto:alexsmth114 at gmail.com] 
Sent: Sunday, February 27, 2011 3:35 AM
To: mathgroup at smc.vnet.net
Subject: [mg116789] [mg116774] Re: Formatting a Cell Programmatically

Informative post, keep them coming!!..




  • Prev by Date: Re: NIntegrate and speed
  • Next by Date: Re: NIntegrate and speed
  • Previous by thread: Re: Formatting a Cell Programmatically
  • Next by thread: Images made from ColorFunction-supplied Rasters