Re: Is TableForm broken?
- To: mathgroup at smc.vnet.net
- Subject: [mg77806] Re: Is TableForm broken?
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sun, 17 Jun 2007 06:05:55 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f503qv$pdp$1@smc.vnet.net>
Donald DuBois wrote: > A single column heading doesn't seem to work. > > lst = {23, 24, 25, 26}; > > Neither > TableForm[lst, TableHeadings -> {Automatic, {"My List"}}] > > or > > TableForm[lst, TableHeadings -> {Automatic, "My List"}] > > or > > TableForm[lst, TableHeadings -> {{Automatic}, {"My List"}}] > > works. > > Am I doing something wrong? > > Don If I remember correctly, this is an old "bug" (google this newsgroup to find the related threads). If you have only one column to display, you should use *ColumnForm* (or *Column* in version 6) rather than *TableForm*. For instance, lst = {23, 24, 25, 26}; (* 5.2 and below *) ColumnForm[Join[{"My List"}, lst]] (* 6.0 only *) Column[Join[{"My List"}, lst]] Regards, Jean-Marc