Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't figure out how to export Mathematica into Word

1,322 views
Skip to first unread message

neojunkox

unread,
Apr 2, 2009, 5:48:33 AM4/2/09
to
I help out my lab partners in one of my classes by exporting out the data and equations we worked on from mathematica. They use microsoft word so I need to copy or export things into rtf first or copy things directly into microsoft word. The problem is that many symbols come out strangely when I try to export or even copy them the tables and math notation comes out like ---
{\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*SubscriptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(\), \(1\)]\)", "\!\(\*SubscriptBox[\(F\), \(2\)]\)",

It seems like there is something not set up the way I want to in the export or copy functions... Also, when exporting to rtf, the tables come out as a list of data instead of being in the correct form. Another system used to export this stuff out to rtf correctly by default... How do I set up mathematica to do the same?

Gerry Flanagan

unread,
Apr 3, 2009, 5:05:23 AM4/3/09
to
I believe the only direct path (no intermediate third-party software) is
to copy-as an image, such as bit-map, and paste. I just started
experimenting with MathType 6.5 (not the version that ships with Word).
It will allow you to paste in a Mathematica equation. It seems to do a
reasonable job, at least for moderate size and complexity equations. The
best answer is to probably to export to LaTex, then find some software
to use the tex in word, but I'm less familiar with that route.
Gerry F.

mike.hon...@gmail.com

unread,
Apr 3, 2009, 5:06:27 AM4/3/09
to
On Apr 2, 4:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
> I help out my lab partners in one of my classes by exporting out the data=
and equations we worked on from mathematica. They use microsoft word so I =
need to copy or export things into rtf first or copy things directly into m=
icrosoft word. The problem is that many symbols come out strangely when I t=
ry to export or even copy them the tables and math notation comes out like =
---
> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)", "\!=

\(\*SubscriptBox[\(F\), \(2\)]\)",
>
> It seems like there is something not set up the way I want to in the expo=
rt or copy functions... Also, when exporting to rtf, the tables come out as=
a list of data instead of being in the correct form. Another system used t=
o export this stuff out to rtf correctly by default... How do I set up math=
ematica to do the same?

You could try this:

nb = NotebookOpen["/path/to/your/file/file.nb"]

Export["test.rtf", nb, "RTF"]

I tried is on a small example and while the full subscripting/
superscripting didn't seem to work, none of the box structure stuff
that you have mentioned in your post was transferred and the
formatting problems looked like something you could manually touch up
in your final document.

I viewed the output in TextEdit. I don't have MS Word so don't know
what it would look like in that. In OpenOffice the (equation) output
looked screwy. I'm not sure that RTF is a uniform format so that could
be an issue.

Mike

Helen Read

unread,
Apr 3, 2009, 5:07:11 AM4/3/09
to
neojunkox wrote:
> I help out my lab partners in one of my classes by exporting out the
> data and equations we worked on from mathematica. They use microsoft
> word so I need to copy or export things into rtf first or copy things
> directly into microsoft word. The problem is that many symbols come out=

> strangely when I try to export or even copy them the tables and math
> notation comes out like ---
> {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)",

> "\!\(\*SubscriptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\)=
,


> \(1\)]\)", "\!\(\*SubscriptBox[\(F\), \(2\)]\)",
>
> It seems like there is something not set up the way I want to in the

> export or copy functions... Also, when exporting to rtf, the tables com=
e


> out as a list of data instead of being in the correct form. Another

> system used to export this stuff out to rtf correctly by default... How=

> do I set up mathematica to do the same?

Use CopyAs -> MathML and paste into Word. Equations, tables, etc., copy
nicely this way, and can then be further edited within Word. (This works =

for Word 2007, at any rate. Probably not for earlier versions of Word.)

--
Helen Read
University of Vermont

Sjoerd C. de Vries

unread,
Apr 3, 2009, 5:09:20 AM4/3/09
to
If you have Word 2007 you can copy the equation as MathML and paste it
straight in Word. It is editable in Word's equation editor.

Otherwise, try a copy as picture.

Cheers -- Sjoerd

On Apr 2, 11:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
> I help out my lab partners in one of my classes by exporting out the data=
and equations we worked on from mathematica. They use microsoft word so I =
need to copy or export things into rtf first or copy things directly into m=
icrosoft word. The problem is that many symbols come out strangely when I t=
ry to export or even copy them the tables and math notation comes out like =
---
> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)", "\!=


\(\*SubscriptBox[\(F\), \(2\)]\)",
>

Bob F

unread,
Apr 3, 2009, 5:08:47 AM4/3/09
to
On Apr 2, 3:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
> I help out my lab partners in one of my classes by exporting out the data=
and equations we worked on from mathematica. They use microsoft word so I =
need to copy or export things into rtf first or copy things directly into m=
icrosoft word. The problem is that many symbols come out strangely when I t=
ry to export or even copy them the tables and math notation comes out like =
---
> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)", "\!=

\(\*SubscriptBox[\(F\), \(2\)]\)",
>
> It seems like there is something not set up the way I want to in the expo=
rt or copy functions... Also, when exporting to rtf, the tables come out as=
a list of data instead of being in the correct form. Another system used t=
o export this stuff out to rtf correctly by default... How do I set up math=
ematica to do the same?

Think the best way to go is with PDF files - so many other programs
can read and import them. So just do a "File/Save As" and specify the
PDF format. Another possibility is PostScript. This is no guarantee of
course that it will work, but is definitely worth a try.

In Word 2008 you can do a Insert/Picutre From/File and then you will
have to choose which of the pages in the PDF file to import.

I have done this on my Mac OS X system with Word 2008, but I assume
that the Windows version of Word has something similar. I hope so
anyway -- let us know how things work out, OK?

-Bob

Szabolcs Horvát

unread,
Apr 3, 2009, 5:12:13 AM4/3/09
to
neojunkox wrote:
> I help out my lab partners in one of my classes by exporting out the da=
ta and equations we worked on from mathematica. They use microsoft word s=
o I need to copy or export things into rtf first or copy things directly =
into microsoft word. The problem is that many symbols come out strangely =
when I try to export or even copy them the tables and math notation comes=
out like ---
> {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*SubscriptBox[=
\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=C3=AF=EF=BF=BD=C5=BD\), \(1\)]\)=

", "\!\(\*SubscriptBox[\(F\), \(2\)]\)",
>
> It seems like there is something not set up the way I want to in the ex=
port or copy functions... Also, when exporting to rtf, the tables come ou=
t as a list of data instead of being in the correct form. Another system =
used to export this stuff out to rtf correctly by default... How do I set=

up mathematica to do the same?
>

Use Copy As -> MathML, then you can paste into Word 2007 (but not
earlier Word versions and not any other Office applications).

peter

unread,
Apr 3, 2009, 9:10:12 PM4/3/09
to
strictly speaking, you don't export to LaTeX. All LaTeX will do [
beautifully ] is pick up the image you've saved to disk from
Mathematica and include it within your final compiled document [
probably a PDF ].

Peter

2009/4/3 Gerry Flanagan <flan...@materials-sciences.com>:


> I believe the only direct path (no intermediate third-party software) is
> to copy-as an image, such as bit-map, and paste. I just started
> experimenting with MathType 6.5 (not the version that ships with Word).
> It will allow you to paste in a Mathematica equation. It seems to do a
> reasonable job, at least for moderate size and complexity equations. The
> best answer is to probably to export to LaTex, then find some software
> to use the tex in word, but I'm less familiar with that route.
> Gerry F.
>

> neojunkox wrote:
>> I help out my lab partners in one of my classes by exporting out the dat=
a and equations we worked on from mathematica. They use microsoft word so I=
need to copy or export things into rtf first or copy things directly into =
microsoft word. The problem is that many symbols come out strangely when I =
try to export or even copy them the tables and math notation comes out like=


---
>> {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*SubscriptBox[\=

(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=83=E4\), \(1\)]\)", "\!\(\*Subscrip=


tBox[\(F\), \(2\)]\)",
>>

>> It seems like there is something not set up the way I want to in the exp=
ort or copy functions... Also, when exporting to rtf, the tables come out a=
s a list of data instead of being in the correct form. Another system used =
to export this stuff out to rtf correctly by default... How do I set up mat=
hematica to do the same?
>>
>>
>>
>
>
>

--
Peter Lindsay

John Fultz

unread,
Apr 3, 2009, 9:14:33 PM4/3/09
to
Since no fewer than three people pointed this out, I just wanted to make sure
that people know that, as of 7.0.1, regular copy/paste uses MathML automatically
when appropriate (i.e. when copying either a single typesetting cell, in part or
in whole, that contains math or code, but no graphics). So, it will generally
be the case that using Copy As is not required.

Sincerely,

John Fultz
jfu...@wolfram.com
User Interface Group
Wolfram Research, Inc.


On Fri, 3 Apr 2009 04:37:16 -0500 (EST), Sjoerd C. de Vries wrote:
> If you have Word 2007 you can copy the equation as MathML and paste it
> straight in Word. It is editable in Word's equation editor.
>
> Otherwise, try a copy as picture.
>
> Cheers -- Sjoerd
>
>

> On Apr 2, 11:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
>> I help out my lab partners in one of my classes by exporting out the

>> data=


> and equations we worked on from mathematica. They use microsoft word so I
> =
> need to copy or export things into rtf first or copy things directly into

> m=


> icrosoft word. The problem is that many symbols come out strangely when I

> t=


> ry to export or even copy them the tables and math notation comes out

> like =
> ---
>> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
> riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)",
> "\!=
> \(\*SubscriptBox[\(F\), \(2\)]\)",


>
>> It seems like there is something not set up the way I want to in the

>> expo=


> rt or copy functions... Also, when exporting to rtf, the tables come out

> as=


> a list of data instead of being in the correct form. Another system used

> t=


> o export this stuff out to rtf correctly by default... How do I set up

bo...@dessci.com

unread,
Apr 3, 2009, 9:16:02 PM4/3/09
to
Actually, MathType 6.5 works quite well for exporting Mathematica
equations and using them in Word. Others have suggested MathML, and
this is the key to using a Mathematica equation in MathType. We have
more detailed instructions on our website:
http://dessci.com/en/support/mathtype/workswith/mathematica.htm

Bob Mathews
Director of Training
Design Science, Inc.

www.dessci.com
~ Makers of MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor
~


On Apr 2, 4:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
> I help out my lab partners in one of my classes by exporting out the data=
and equations we worked on from mathematica. They use microsoft word so I =
need to copy or export things into rtf first or copy things directly into m=
icrosoft word. The problem is that many symbols come out strangely when I t=
ry to export or even copy them the tables and math notation comes out like =
---
> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)", "\!=


\(\*SubscriptBox[\(F\), \(2\)]\)",
>

> It seems like there is something not set up the way I want to in the expo=
rt or copy functions... Also, when exporting to rtf, the tables come out as=
a list of data instead of being in the correct form. Another system used t=
o export this stuff out to rtf correctly by default... How do I set up math=

peter

unread,
Apr 5, 2009, 6:30:35 AM4/5/09
to
strictly speaking, you don't export to LaTeX. All LaTeX will do [
beautifully ] is pick up the image you've saved to disk from
Mathematica and include it within your final compiled document [
probably a PDF ].

Peter

2009/4/3 Gerry Flanagan <flan...@materials-sciences.com>:
> I believe the only direct path (no intermediate third-party software) is
> to copy-as an image, such as bit-map, and paste. I just started
> experimenting with MathType 6.5 (not the version that ships with Word).
> It will allow you to paste in a Mathematica equation. It seems to do a
> reasonable job, at least for moderate size and complexity equations. The
> best answer is to probably to export to LaTex, then find some software
> to use the tex in word, but I'm less familiar with that route.
> Gerry F.
>

> neojunkox wrote:
>> I help out my lab partners in one of my classes by exporting out the dat=
a and equations we worked on from mathematica. They use microsoft word so I=
need to copy or export things into rtf first or copy things directly into =
microsoft word. The problem is that many symbols come out strangely when I =
try to export or even copy them the tables and math notation comes out like=
---
>> {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*SubscriptBox[\=
(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=83=E4\), \(1\)]\)", "\!\(\*Subscrip=


tBox[\(F\), \(2\)]\)",
>>

John Fultz

unread,
Apr 5, 2009, 6:35:02 AM4/5/09
to
Since no fewer than three people pointed this out, I just wanted to make sure
that people know that, as of 7.0.1, regular copy/paste uses MathML automatically
when appropriate (i.e. when copying either a single typesetting cell, in part or
in whole, that contains math or code, but no graphics). So, it will generally
be the case that using Copy As is not required.

Sincerely,

John Fultz
jfu...@wolfram.com
User Interface Group
Wolfram Research, Inc.


On Fri, 3 Apr 2009 04:37:16 -0500 (EST), Sjoerd C. de Vries wrote:
> If you have Word 2007 you can copy the equation as MathML and paste it
> straight in Word. It is editable in Word's equation editor.
>
> Otherwise, try a copy as picture.
>
> Cheers -- Sjoerd
>
>

> On Apr 2, 11:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
>> I help out my lab partners in one of my classes by exporting out the

>> data=


> and equations we worked on from mathematica. They use microsoft word so I
> =
> need to copy or export things into rtf first or copy things directly into

> m=


> icrosoft word. The problem is that many symbols come out strangely when I

> t=


> ry to export or even copy them the tables and math notation comes out

> like =
> ---
>> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
> riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)",
> "\!=
> \(\*SubscriptBox[\(F\), \(2\)]\)",


>
>> It seems like there is something not set up the way I want to in the

>> expo=


> rt or copy functions... Also, when exporting to rtf, the tables come out

> as=


> a list of data instead of being in the correct form. Another system used

> t=


> o export this stuff out to rtf correctly by default... How do I set up

bo...@dessci.com

unread,
Apr 5, 2009, 6:36:28 AM4/5/09
to
Actually, MathType 6.5 works quite well for exporting Mathematica
equations and using them in Word. Others have suggested MathML, and
this is the key to using a Mathematica equation in MathType. We have
more detailed instructions on our website:
http://dessci.com/en/support/mathtype/workswith/mathematica.htm

Bob Mathews
Director of Training
Design Science, Inc.

www.dessci.com
~ Makers of MathType, MathFlow, MathPlayer, MathDaisy, Equation Editor
~


On Apr 2, 4:48=C2 am, neojunkox <sungreenta...@gmail.com> wrote:
> I help out my lab partners in one of my classes by exporting out the data=
and equations we worked on from mathematica. They use microsoft word so I =
need to copy or export things into rtf first or copy things directly into m=
icrosoft word. The problem is that many symbols come out strangely when I t=
ry to export or even copy them the tables and math notation comes out like =
---
> =C2 =C2 {\[Null], "\!\(\*SubscriptBox[\(F\), \(1\)]\)", "\!\(\*Subsc=
riptBox[\(d\), \(1\)]\)", "\!\(\*SubscriptBox[\(=EF=81=B4\), \(1\)]\)", "\!=


\(\*SubscriptBox[\(F\), \(2\)]\)",
>

> It seems like there is something not set up the way I want to in the expo=
rt or copy functions... Also, when exporting to rtf, the tables come out as=
a list of data instead of being in the correct form. Another system used t=
o export this stuff out to rtf correctly by default... How do I set up math=

0 new messages