Re: how to make formatted output with Grid and Print?
- To: mathgroup at smc.vnet.net
- Subject: [mg125828] Re: how to make formatted output with Grid and Print?
- From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
- Date: Wed, 4 Apr 2012 04:31:03 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
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
Hi, Ted,
What about the following:
Print@Grid[{{"a", "b"}, {"c", "d"}}]
a b
c d
?
Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG
Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44
e-mail: alexei.boulbitch at iee.lu
- Follow-Ups:
- Re: how to make formatted output with Grid and Print?
- From: Ted Sariyski <tsariysk@craft-tech.com>
- Re: how to make formatted output with Grid and Print?