Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4497

copying Inline math to create StandardForm in Input cell

From Dushan Mitrovich <dushanm@nnips.net>
Newsgroups comp.soft-sys.math.mathematica
Subject copying Inline math to create StandardForm in Input cell
Date 2011-08-20 10:17 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j2o1k5$4rs$1@smc.vnet.net> (permalink)

Show all headers | View raw


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 ]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

copying Inline math to create StandardForm in Input cell Dushan Mitrovich <dushanm@nnips.net> - 2011-08-20 10:17 +0000

csiph-web