MathGroup Archive 2008

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

Search the Archive

Re: Inconsistent syntax for Row and Column?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92773] Re: [mg92728] Inconsistent syntax for Row and Column?
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Mon, 13 Oct 2008 06:16:54 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200810111046.GAA12299@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Indeed this seems to be an oversight, as Options[Column] includes 
BaseStyle whereas Options[Row] does not.  A work-around is to use Grid:

   Grid[{{"hello", "world"}}, BaseStyle -> {Blue, FontFamily -> "Times"}]

michael.p.croucher at googlemail.com wrote:
> Hi all
> 
> If I want to format all of the Elements in a column such that they are
> displayed in the Times New Roman font and coloured blue then I might
> do this:
> 
> Column[{"hello", "world"}, BaseStyle -> {Blue, FontFamily -> "Times"}]
> 
> Which works nicely.  Since a row is just the transpose of a column you
> might expect the same syntax to work with Row (I certainly did) but
> 
> Row[{"hello", "world"}, BaseStyle -> {Blue, FontFamily -> "Times"}]
> 
> gives the following output:
> 
> (Row[{"hello", "world"}, BaseStyle -> {RGBColor[0, 0, 1], FontFamily -
>> "Times"}])
> 
> Since the second argument in Row defines a separator.  Would it be
> more reasonable for these two functions to have similar syntax?  Of
> course one solution to the row formatting problem is to do
> 
> Style[Row[{"hello", "world"}], {FontFamily -> "Times", Blue}]
> 
> but it baffles me as to why these two functions were set up with such
> different syntax.
> 
> Cheers,
> Mike
> 
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Getting rid of those deprecated Do[] loops?
  • Next by Date: Re: Getting rid of those deprecated Do[] loops?
  • Previous by thread: Inconsistent syntax for Row and Column?
  • Next by thread: Re: Inconsistent syntax for Row and Column?