Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

how to make formatted output with Grid and Print?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125797] how to make formatted output with Grid and Print?
  • From: Ted Sariyski <tsariysk at craft-tech.com>
  • Date: Tue, 3 Apr 2012 04:45:49 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201204010735.DAA23285@smc.vnet.net>

Hi,
I want to make a kind of formatted Print output with Grid. With strings 
it works as expected,

Grid[{{"a", "b"}, {"c", "d"}}]
> a    b
> c    d
>

Print puts \n before Grid takes effect.
Grid[{{Print["a"], Print["b"]}, {Print["c"], Print["d"]}}]
> a
> b
> c
> d
How can I produce formatted output?
Thanks,
--Ted



  • Prev by Date: Find common elements in a list of sublists
  • Next by Date: Barchart with ChartElements doesn't want to plot negative.
  • Previous by thread: Biokmod 5.02 ( a toolbox for biokinetic modeling, including ICRP models) is available
  • Next by thread: Re: How to count