Re: text table
- To: mathgroup at smc.vnet.net
- Subject: [mg129619] Re: text table
- From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
- Date: Wed, 30 Jan 2013 04:27:13 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-newout@smc.vnet.net
- Delivered-to: mathgroup-newsend@smc.vnet.net
I need to make a table, but one that uses text with in, not numbers. How do
I go about this?
Thanks
Hi,
You do the same as in any other table i.e. make a nested list and wrap it by Grid, but put strings as the elements of the list. Below find a table with some styling containing both text cells, cells with numbers and empty ones that I did for my own purpose. Evaluate this:
tableSkinTempNeutral1 = {{"Segment",
Column[{"Skin temperature", "thin leotard [\[Degree]C]"}],
Column[{"Skin temperature", "office clothing [\[Degree]C]"}] },
{"Forehead", 35.8, 34.2},
{"Cheek", 35.2, " "},
{"Front neck", 35.8, ""},
{"Back neck", 35.4, ""},
{"Chest", 35.1, 34.5},
{"Back", 35.3, 34.4},
{"Abdomen", 35.3, 34.9},
{"Upper arm", 34.2, 33.5}};
Panel@Grid[tableSkinTempNeutral1, Frame -> All,
Dividers -> Directive[Gray, Thickness[4]],
ItemSize -> {Automatic, 2},
Background -> {None, {LightYellow, {LightBlue, LightOrange}},
1 -> LightYellow}]
You may also play with Style statements. That is instead of, say, "Forehead" you put Style["Forhead",12,Red,Bold], and so on.
Hope this helps, have fun, Alrexei
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