Re: holding boxes verbatim
- To: mathgroup at smc.vnet.net
- Subject: [mg56264] Re: holding boxes verbatim
- From: "Carl K. Woll" <carl at woll2woll.com>
- Date: Wed, 20 Apr 2005 05:32:12 -0400 (EDT)
- References: <00aa01c544e3$6db4af30$6400a8c0@Main> <acbec1a40504191029479f8415@mail.gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
"Chris Chiasson" <chris.chiasson at gmail.com> wrote > As a follow up to those who requested clairification: > > Consider the simple examples: > > HoldAllComplete[b*(a + s*m)] (*notice the order of the vairables > inside the inner Times is rearranged on output*) > HoldAllComplete[(x)^(1/2)] (*notice the reformatting of an expression > to the power 1/2 is reformatted to the square root of the expression*) > HoldAllComplete[(x/y)(h/g)] (*notice the elimination of the parenthesis*) > > The reason these things happen is that the boxes are parsed into > Mathematica input such as Times[b,Plus[a,Times[s,m]]]. > > I need a way to work directly with the boxes, but still at least do > some variable substitution. > > Thank you again for your time. Some of your concerns are alleviated by using OutputForm[HoldForm[ ... ]]. At least in your examples, the only differences between the input and the output are the absence of * and unnecessary parentheses. Carl Woll