Re: Help with formatting output
- To: mathgroup at smc.vnet.net
- Subject: [mg77736] Re: Help with formatting output
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 15 Jun 2007 04:58:36 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f4r24g$7lv$1@smc.vnet.net>
Diana wrote: > Mathematica junkies, > > I would like to format: > > {35,36,2,4,5} as > > 1 35 > 2 36 > 2 2 > 3 4 > 5 5 > > I have a list, such as {35,36,2,4,5}, and want two-column output, > where the first column is the position n the list, and the second > column is the actual list. I want just a space between the columns. > > I have Mathematica, TextPad, and Dreamweaver at my disposal. Can > someone give me a hint as to an easy way to do this? Thanks, Diana M. The following should do what you want: lst = {35, 36, 2, 4, 5}; TableForm[lst, TableHeadings -> {Automatic, None}, TableSpacing -> {1}] Regards, Jean-Marc