copying Inline math to create StandardForm in Input cell
- To: mathgroup at smc.vnet.net
- Subject: [mg120977] copying Inline math to create StandardForm in Input cell
- From: Dushan Mitrovich <dushanm at nnips.net>
- Date: Sat, 20 Aug 2011 06:16:08 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
I'm using Mathematica 8 under Mac OS X.6.5. I'd appreciate some guidance on the proper way to copy Inline math expressions and paste them as StandardForm into a cell. Sometimes it works, often it doesn't, and I don't know what needs be done to correct the problem. Generally I write Notebooks as technical reports, using text and Inline formulas, and with executable Input cells only when needed. When I need to operate in some way on an Inline math expression, I highlight the relevant part, copy it, past it into a separate Input cell, then edit that into Mathematica format (so 'sin(x)' is modified to read 'Sin[x]', etc.). Sometimes extra modifications are needed as well. Executing the Input cell generally works if there are no extra modifications, but if there are, various errors occur. Apparently the expression being copied contains formatting information that isn't visible unless I paste it into a text editor. Attempts to convert the expression into StandardForm or InputForm had no effect. Here's a probably superfluous example: Limit[\!\(TraditionalForm\`\(TraditionalForm\` \*FractionBox[\(Sin[\[Theta]]\), \(2 Sinh[ \*FractionBox[\(1\), \(2\)] \(( \*SubscriptBox[\(\[Xi]\), \(A\)] - \*SubscriptBox[\(\[Xi]\), \(B\)])\)]\)] \(( \*SqrtBox[ FractionBox[\(Cosh[ \*SubscriptBox[\(\[Xi]\), \(A\)]] + Cos[\[Theta]]\), \(Cosh[ \*SubscriptBox[\(\[Xi]\), \(B\)]] + Cos[\[Theta]]\)]] - \*SqrtBox[ FractionBox[\(Cosh[ \*SubscriptBox[\(\[Xi]\), \(B\)]] + Cos[\[Theta]]\), \(Cosh[ \*SubscriptBox[\(\[Xi]\), \(A\)]] + Cos[\[Theta]]\)]])\)\), \*SubscriptBox[\(\[Xi]\), \(A\)] -> \[Infinity]\), \ \!\(TraditionalForm\`Assumptions -> { \*SubscriptBox[\(\[Xi]\), \(B\)] > 0, \[Theta] \[Element] Reals}\)] Obviously I'm going about it incorrectly. Could someone point me to instructions on how to do it right? Thanks. - Dushan [ reverse the middle word of address to reply ]