MathGroup Archive 2011

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

Search the Archive

Re: Getting TraditionalForm to put in a multiplication sign.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120758] Re: Getting TraditionalForm to put in a multiplication sign.
  • From: Peter Pein <petsie at dordos.net>
  • Date: Tue, 9 Aug 2011 07:19:23 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j1lomg$nmi$1@smc.vnet.net>

Am 07.08.2011 12:16, schrieb Frank K:
> For purposes of exporting Mathematica expressions to other software,
> it would be useful to have a multiplication sign (*) in
> TraditionalForm instead of a space.  For example, x * y * (w + z)
> instead of x y (w + z).  Anybody know how to do this?
> 

Hi,

will the following do what you want?

Unprotect[Times];
Format[HoldPattern[Times[x_, y__]]] := x \[CenterDot] y;
Protect[Times];
a x^2 + b x + c // TraditionalForm






  • Prev by Date: Notebook works, CDF file doesn't
  • Next by Date: More robust pattern based replacement rules?
  • Previous by thread: Re: Getting TraditionalForm to put in a multiplication sign.
  • Next by thread: Re: Getting TraditionalForm to put in a multiplication sign.