Re: tableform question
- To: mathgroup at smc.vnet.net
- Subject: [mg70045] Re: tableform question
- From: bghiggins at ucdavis.edu
- Date: Sun, 1 Oct 2006 04:09:02 -0400 (EDT)
- References: <efldbk$d4k$1@smc.vnet.net>
The key is to use GridBoxes. You have much more control over the appearance of your table. By combining the options of GridBoxes with StyleBox you can get pretty nifty looking Tables: Here is a basic example: DisplayForm[StyleBox[GridBox[{ {"", "global rules\nstored with\nthe head", "global rules\nstored with\nan argument", "local rules"}, {"evaluate \ rhs", "=", "^=", "->"}, { "delay rhs", ":=", "^:=", ":>"}}, RowLines -> True, \ ColumnLines -> True, GridFrame -> True], FontColor -> RGBColor[1, 0, 1], \ FontWeight -> "Bold", Background -> RGBColor[0.42002, 1, 0.932296]]] Hope this helps, Cheers, Brian dimmechan at yahoo.com wrote: > Is it possible to display the output of the following command > > table=StyleForm[TableForm[{{"=", "^=", "->"}, {":=", "^:=", ":>"}}, > TableHeadings -> {{"evaluate rhs", "delay rhs"}, {"global > rules\nstored with\nthe head", > "global rules\nstored with\nan argument", "local rules"}}, > TableAlignments -> Center, TableSpacing -> {2, 2}], FontFamily -> > "Times", FontSize -> 14, FontColor -> Red] > > as it would appeared in a book (i.e. with lines separated columns from > rows e.t.c.)? > > If the answer is no please let me know how I have to work. > > Thanks.