Prev: WorkingPrecision and NDSolve
Next: "Simplifying" expressions to not expand user-defined functions
From: Michael Stern on 27 May 2010 06:43 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 28 May 2010 07:21 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 28 May 2010 07:22 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
|
Pages: 1 Prev: WorkingPrecision and NDSolve Next: "Simplifying" expressions to not expand user-defined functions |