From: Michael Stern on
Using TableForm[], is there any way to format individual lines of a
table to be a different style (such as Bold), or should I punt to Grid[]?

Thanks,

Michael



From: Helen Read on
On 5/27/2010 6:43 AM, Michael Stern wrote:
> Using TableForm[], is there any way to format individual lines of a
> table to be a different style (such as Bold), or should I punt to Grid[]?

I don't know why you would consider Grid "punting". I use Grid for all
my tables, and never ever use TableForm anymore. With Grid you can
format any way you like.

--
Helen Read
University of Vermont


From: Bob Hanlon on

Table[Style[#,
If[Mod[n, 2] == 1,
Directive[Red, Bold],
Plain]] & /@
{n, n^2, n^3}, {n, 5}] // TableForm

Alternatively,

f[x_List] :=
Style[#, Directive[Red, Bold]] & /@ x;

t = Table[{n, n^2, n^3}, {n, 5}];

n = 1;
TableForm[If[Mod[n++, 2] == 1,
f[#], #] & /@ t]


Bob Hanlon

---- Michael Stern <nycstern(a)gmail.com> wrote:

=============
Using TableForm[], is there any way to format individual lines of a
table to be a different style (such as Bold), or should I punt to Grid[]?

Thanks,

Michael