Skip to main content
1-Visitor
January 19, 2022
Question

paste equation from word in ptc

  • January 19, 2022
  • 3 replies
  • 4239 views

Hello. i am trying to paste an equation i wrote in microsoft office (word) into ptc to calculate it for me.

when i press Ctrl + V it pastes the equation with comma marks and they can't be deleted. what should i do ?

3 replies

24-Ruby III
January 19, 2022

Hi,

I guess you have to edit m1 definition. This means remove quotes and modify operators.

23-Emerald V
January 22, 2022

@MartinHanak wrote:

Hi,

I guess you have to edit m1 definition. This means remove quotes and modify operators.



Doesn't work in Mathcad Express 7 - Prime doesn't recognize the expression sufficiently well to allow editing.

 

Stuart

25-Diamond I
January 19, 2022

@BD_10159625 wrote:

Hello. i am trying to paste an equation i wrote in microsoft office (word) into ptc to calculate it for me.

when i press Ctrl + V it pastes the equation with comma marks and they can't be deleted. what should i do ?


It sure would be a nice feature, but why do you think that Prime will understands and can convert M$ Office formulas?

23-Emerald V
January 22, 2022

@Werner_E wrote:

@BD_10159625 wrote:

Hello. i am trying to paste an equation i wrote in microsoft office (word) into ptc to calculate it for me.

when i press Ctrl + V it pastes the equation with comma marks and they can't be deleted. what should i do ?


It sure would be a nice feature


It, or something similar, has long been on my feature request list, including the ability to paste a standard C expression in and have it auto-convert and also to implement a Mathcad text programming language to support writing programs when one has no access to Mathcad.

 

I sometimes have an idea when I'm not near my laptop, eg travelling, and it would be very convenient to be able to type it up on my phone and then just copy&paste the expressions straight into a worksheet.  Another use is typing up a Mathcad worksheet content when describing an algorithm in a non-Mathcad environment (eg, Project Euler, Rosetta Code, or Stack Exchange) - it is a pain doing it manually.  ΤΕΧ is another option I've requested to make it easier to paste WYSIWYG equations into websites that support it (eg, via MathJax).

 

Hey ho, 

 

Stuart

25-Diamond I
January 22, 2022

@StuartBruff wrote:


It, or something similar, has long been on my feature request list, .....

... I've requested to make it easier ...

Although I can't understand it, I have to admit that I admire and appreciate your undiminished (and I fear misplaced) optimism a lot!

23-Emerald I
January 21, 2022

From your picture it appears that Prime is inserting the formula as a string.  There has been some recent activity doing some text editing (#StuartBruff) that may point the way to a converter from text string to math.

23-Emerald V
January 22, 2022

@Fred_Kohlhepp wrote:

From your picture it appears that Prime is inserting the formula as a string.  There has been some recent activity doing some text editing (#StuartBruff) that may point the way to a converter from text string to math.


Unfortunately, what it seems to require is a parser.   I've got a Lisp parser that could be tweaked to handle Polish notation.  I could, I suppose, write a converter for it to deal with standard maths notation.

 

However, the output is the result of the expression, not the expression itself in a Mathcad-viewable/useable format.  

 

It would be possible in Mathcad 15 by creating an XML version and using a component to create/edit a region.  Regrettably, Prime doesn't (yet) have useful components.  Another option might be to create an external program to handle the conversion via the Mathcad API or paste the XML into Windows' edit buffer.  However, that's a lot of kerfuffle on the user's part and tramples on the concept of Mathcad as an IDE.

 

Stuart