Text in Tables

Text in Tables

Post by Ron Smit » Thu, 16 Sep 2004 21:07:33


Any input into a table cell is done in
TraditionalForm. This is fine if the cell contains
mathematical notation but if you want to just input
some text the result is a lot of unnecessary gunk in
the underlying cell expression.

(E.g. "some text" appears as RowBox[{"some", " ",
"text"}] )

You can manually edit this underlying expression to
ensure that it is just text that appears in the cell
of the GridBox expression but this gets cumberson with
large tables. Can you enter text directly into a Table
that doesn't result in an underlying expression that
uses RowBoxes?
Thanks.

Find local movie times and trailers on Yahoo! Movies.
http://www.yqcomputer.com/
 
 
 

Text in Tables

Post by Paul Abbot » Wed, 22 Sep 2004 16:55:06

In article <ci9ba5$i5j$ XXXX@XXXXX.COM >, Ron Smith < XXXX@XXXXX.COM >



I'm not sure exactly what you want to achieve here. Can you post an
example of the type of cell you want to produce.

To enter an inline (TraditionalForm) equations in a table you use
\[ControlKey]9. One little known tip is that this operation is a toggle.
So if you enter it twice you will get (plain) text inside Cells in the
table fields. For example, compare (in a StyleSheet such as
ArticleClassic that has the "NumberedTable" style)

Cell[TextData[Cell[BoxData[
FormBox[GridBox[{{
RowBox[{"some", " ", "text"}],
"more",
RowBox[{"and", " ", "even", " ", "more"}]
}}], TraditionalForm]]]],
"NumberedTable"]

with

Cell[TextData[Cell[BoxData[
FormBox[GridBox[{{
Cell["some text"],
Cell["more"],
Cell["and even more"]}
}], TraditionalForm]]]],
"NumberedTable"]

Cheers,
Paul

--
Paul Abbott Phone: +61 8 9380 2734
School of Physics, M013 Fax: +61 8 9380 1014
The University of Western Australia (CRICOS Provider No 00126G)
35 Stirling Highway
Crawley WA 6009 mailto: XXXX@XXXXX.COM
AUSTRALIA http://www.yqcomputer.com/ ~paul