MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Minor gripe re Table formatting

  • To: mathgroup at
  • Subject: [mg69071] Minor gripe re Table formatting
  • From: AES <siegman at>
  • Date: Tue, 29 Aug 2006 03:26:14 -0400 (EDT)
  • Organization: Stanford University
  • Sender: owner-wri-mathgroup at

Table (or TableForm) have no "TableLabel" option, akin to PlotLabel, 
that one can use to put a title or caption above the Table.

So, if you want to put a Table with a superimposed title or caption in a 
single cell, you can try something like

   Print["Title string", TableForm[Table[ --- ]]]


   Print["Title string\n", TableForm[Table[ --- ]]]

The first version (with no "\n"), however, sometimes puts the title 
string above the table, but sometimes places it down and centered to the 
left of the table, depending in an more or less unpredictable fashion on 
the length of the title string and the width of the table.

The second version, however, always insists on putting *two* blank lines 
between the title and the table.  Not exactly a crime against nature -- 
but a TableLabel option could be a handy addition some day.

[And while we're on Labels, PlotLabel and FrameLabel are really 
inconsistent uses of the term "Label", aren't they?]

  • Prev by Date: Re: Beginner--Beginner: Calculating Ave Intensity in a domain of n points
  • Next by Date: Re: Numerical evaluation is Mathematica bottleneck?!
  • Previous by thread: Re: using FindRoot to find multiple answers in a domain?
  • Next by thread: Re: Minor gripe re Table formatting