Hey,
I am wanting to take lines of code that I have pasted from mathtype and concatenate each of the lines in word using VBA.
This is a possible example of what I might have to start with.
<math>
<semantics>
<mi>a</mi>
<annotation encoding='MathType-MTEF'>
</annotation>
</semantics>
</math>
I want it to change into
<math><semantics><mi>a</mi><annotation encoding='MathType-MTEF'></annotation></semantics></math>
and if possible remove the <math>, <semantics> and
</math>, </semantics> tags.
I don't know much about VBA but I thought that something using the trim function may be useful when applied to each line of code. Then you could stick all of the lines together.
Does anyone have any ideas? Also is it possible to make it available by a button in word, that then creates an input prompt?
It would be excellent if you could help me out
I am wanting to take lines of code that I have pasted from mathtype and concatenate each of the lines in word using VBA.
This is a possible example of what I might have to start with.
<math>
<semantics>
<mi>a</mi>
<annotation encoding='MathType-MTEF'>
</annotation>
</semantics>
</math>
I want it to change into
<math><semantics><mi>a</mi><annotation encoding='MathType-MTEF'></annotation></semantics></math>
and if possible remove the <math>, <semantics> and
</math>, </semantics> tags.
I don't know much about VBA but I thought that something using the trim function may be useful when applied to each line of code. Then you could stick all of the lines together.
Does anyone have any ideas? Also is it possible to make it available by a button in word, that then creates an input prompt?
It would be excellent if you could help me out