f



Text in Tables

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://au.movies.yahoo.com

0
rcmmma (1)
9/15/2004 12:07:33 PM
comp.soft-sys.math.mathematica 28821 articles. 0 followers. Follow

1 Replies
935 Views

Similar Articles

[PageSpeed] 30

In article <ci9ba5$i5j$1@smc.vnet.net>, Ron Smith <rcmmma@yahoo.com.au> 
wrote:

> 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?

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:paul@physics.uwa.edu.au 
AUSTRALIA                            http://physics.uwa.edu.au/~paul

0
paul6721 (633)
9/21/2004 7:55:06 AM
Reply: