Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9375

how to make formatted output with Grid and Print?

From Ted Sariyski <tsariysk@craft-tech.com>
Newsgroups comp.soft-sys.math.mathematica
Subject how to make formatted output with Grid and Print?
Date 2012-04-03 08:47 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jledes$gun$1@smc.vnet.net> (permalink)
References <201204010735.DAA23285@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

how to make formatted output with Grid and Print? Ted Sariyski <tsariysk@craft-tech.com> - 2012-04-03 08:47 +0000

csiph-web