Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4285
| From | Simon <simonjtyler@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Getting TraditionalForm to put in a multiplication sign. |
| Date | 2011-08-10 10:58 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j1to84$pti$1@smc.vnet.net> (permalink) |
| References | <j1lomg$nmi$1@smc.vnet.net> |
I thought there must be an option for this... but couldn't find it. (AutoMultiplicationSymbol seems to only be for numbers...) Instead, here's a quick hack that relies on the fact that in the box form of expressions, a single space is almost always used to denote multiplication. ClearAll[TradFormX] SetAttributes[TradFormX, HoldFirst] TradFormX[expr_, cellStyle_String:"Output", outForm_: TraditionalForm] := CellPrint[Cell[ToBoxes[HoldForm[expr], outForm] /. " " -> "*", cellStyle]] In[]:= (3 2 a + b) f[x + 2 y]//TradFormX Out[]= (3*2*a + b)*f(x + 2*y)
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Getting TraditionalForm to put in a multiplication sign. Frank K <fkampas@gmail.com> - 2011-08-07 10:16 +0000
Re: Getting TraditionalForm to put in a multiplication sign. Peter Pein <petsie@dordos.net> - 2011-08-09 11:23 +0000
Re: Getting TraditionalForm to put in a multiplication sign. Simon <simonjtyler@gmail.com> - 2011-08-11 09:21 +0000
Re: Getting TraditionalForm to put in a multiplication sign. Frank K <fkampas@gmail.com> - 2011-08-13 10:53 +0000
Re: Getting TraditionalForm to put in a multiplication sign. Simon <simonjtyler@gmail.com> - 2011-08-10 10:58 +0000
csiph-web