Message Boards Message Boards

3 Replies
0 Total Likes
View groups...
Share this post:

Insertion of tables and Table cell style


I have one question regarding the insertion of tables into Mathematica notebook. In order to insert the table I used the command Insert -> Table/Matrix on the Mathemtica menu pannel. It works fine, but when I changed the cell style to "Table" the table becomes distorted, i.e. the size of the tables cell becomes much wider compared to the size of the table content in this cell (see the attached file "example2" and the style file "late-style.nb" ). If there is any way to fix it?


POSTED BY: Victor Dykin
3 Replies

The Table style is defined in the stylesheet named PublicationDefault.nb, which is referenced by the various article and book stylesheets. The key option in effect here is this setting for column item size:

GridBoxItemSize->{"Columns" -> {{
      Scaled[0.503]}}, "ColumnsIndexed" -> {}, "Rows" -> {{1.}}, "RowsIndexed" -> {}}

making each column 50% of the window width. This is really only appropriate for 2 column tables, and should probably be reconfigured to something a little more practical. To override the setting, you can apply the following at the cell level:

GridBoxOptions->{GridBoxItemSize->{"Columns" -> {}}}
POSTED BY: Andre Kuzniarek

(Duplicates second question in

POSTED BY: Bruce Miller

Composing custom tables in Mathematica is still something of a problem because the principle construct is Grid and this depends heavily on a somewhat convoluted Option structure. Although this is not a direct answer to your question, which I don't completely understand, the Presentations Application, which I sell through my web site, has a TableMaker section that allows one to construct custom tables in the same manner that one might draw a graphic. It interactively translates table composition commands to the Grid structure. It is also possible to extract the final Grid code to use in notebooks not using Presentations.

I have attached a PDF file illustrating an example.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract