Re: Formatting a Cell Programmatically
- To: mathgroup at smc.vnet.net
- Subject: [mg116764] Re: Formatting a Cell Programmatically
- From: Thomas Dowling <thomasgdowling at gmail.com>
- Date: Sat, 26 Feb 2011 06:09:06 -0500 (EST)
Hello,
Maybe something like ....
Labeled[Framed[Table[{x, Sqrt[x], x^3}, {x, 0, 100}],
FrameStyle -> Orange, RoundingRadius -> 10,
Background -> LightYellow],
Style["MyTable", Bold, FontFamily -> Times]]
Tom Dowling
On Fri, Feb 25, 2011 at 11:36 AM, Gregory Lypny
<gregory.lypny at videotron.ca>wrote:
> Hello everyone,
>
> Is there a way to programmatically format an output cell so that even if it
> is deleted, it can be restored with its original format simply by executing
> the input cell again? Suppose my input cell contains an expression to
> create a table such as
>
> Table[{x, Sqrt[x], x^3}, {x, 0, 100}]
>
> What functions would I wrap around that input so that the output cell
> appears with, say, a frame and a light brown background? I've been messing
> around Cell[...] and CellPrint[...] but all of the examples I've seen have
> taken straight text as the argument and I haven't gotten anything to work
> with a computation.
>
> Regards,
>
> Gregory
>
>