MathGroup Archive 2007

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

Search the Archive

ExpressionCell and DefaultFormatType

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78630] ExpressionCell and DefaultFormatType
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Thu, 5 Jul 2007 05:51:19 -0400 (EDT)

ExpressionCell formats cells using the current default output format
of either the current notebook or the global front end. It is usually
set to StandardForm, but can be changed with either of the following
commands:

SetOptions[$FrontEnd,CommonDefaultFormatTypes->{"Output"->TraditionalForm}]

SetOptions[EvaluationNotebook[],CommonDefaultFormatTypes->{"Output"->TraditionalForm}]

Why does ExpressionCell format cells using the current global (or
notebook) default output format rather than using the
DefaultFormatType* (defined in the style sheet) of the cell style
supplied in the second argument? This causes some of the potential
power of ExpressionCell to go untapped because the author can not rely
on the stylesheet to maintain the proper form for generated cells. A
solution could be hacked in if anyone knows of functionality to query
the active stylesheets. Actually, scratch that, a solution can be
hacked in anyway, see:

http://test.chris.chiasson.name/fuel-cell-electrochemistry/ExpressionCell/Workarounds.m
http://test.chris.chiasson.name/fuel-cell-electrochemistry/Problem%20Set%20I.nb
(please excuse horrible coding practices here)


*at least that is what my testing indicates... but the new style
system is tricky and I am not an expert

-- 
http://chris.chiasson.name/


  • Prev by Date: Re: Concatenation of prime factors of numbers
  • Next by Date: Re: AW: position of matrix elements for intervals
  • Previous by thread: Re: Error message need explaination in english
  • Next by thread: PiecewiseExpand and conditional results from Integrate