Re: TraditionalForm ordering
- To: mathgroup at smc.vnet.net
- Subject: [mg80279] Re: [mg80217] TraditionalForm ordering
- From: Carl Woll <carlw at wolfram.com>
- Date: Thu, 16 Aug 2007 04:51:18 -0400 (EDT)
- References: <200708150812.EAA09733@smc.vnet.net>
Chris Chiasson wrote:
>Is there some way to retain TraditionalForm, but have held expressions
>maintain their original order? For instance, it would be useful if I
>could make the expression below print as b+a instead of a+b. Are there
>any secret options to TraditionalForm that do that?
>
>TraditionalForm@HoldForm[b+a]
>
>
Use the undocumented function PolynomialForm:
TraditionalForm @ PolynomialForm[HoldForm[b + a], TraditionalOrder -> False]
Carl Woll
Wolfram Research
>Bonus points:
>Explain the output of this command in terms of the pattern matching of
>FormatValues, Attributes, and DefaultValues of Times.
>
>Grid[Outer[HoldForm@Times[1,##,1]&,{2,a,1},{2,a,1}],Dividers->All]
>
>
>
- References:
- TraditionalForm ordering
- From: "Chris Chiasson" <chris@chiasson.name>
- TraditionalForm ordering