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

Outputting MatrixForm to Word

0 views
Skip to first unread message

Steve Gray

unread,
Sep 18, 2005, 1:20:28 AM9/18/05
to
I have some matrices of modest width (they fit across the screen easily) whose numeric
contents I want to copy into MS Word so I can reformat them by hand (underlines, italics, etc.,
selectively). Everything I have tried results in Word seeing a picture instead of text. I cxan make
true text by changing the cell to InputForm, which loses the nice columnar layout. I need to keep
the data in the MatrixForm layout. Can I do this without recoding my output?
Thanks for any tips.

Steve Gray

David Bailey

unread,
Sep 19, 2005, 5:23:45 AM9/19/05
to
Hello,

Try the menu item Edit > CopyAs > Copy as plain text

This will put just the text into the clipboard.

David Bailey
http://www.dbaileyconsultancy.co.uk

Chris Chiasson

unread,
Sep 19, 2005, 5:29:04 AM9/19/05
to
*There is a convoluted way that involves conversion to LaTeX and then
to RTF and then to Word. I don't know if it works for matrices.
*On the other hand, you could buy that high end equation writing
package for Word. I hear it supports MathML input (which Mathematica
can easily export). This would probably be the best option, especially
if everyone that looks at the document doesn't have the same version
of Word.
*Another method might be to convert the elements of your matrix to
text form and then apply bold, italics, etc. within Mathematica
itself.
*If you really wanted the document to be portable, you could write it
in DocBook and embed the MathML.

Is this for work? How do they *expect* you to do this?

On 9/18/05, Steve Gray <ste...@adelphia.net> wrote:
> I have some matrices of modest width (they fit across the screen easily) whose numeric
> contents I want to copy into MS Word so I can reformat them by hand (underlines, italics, etc.,
> selectively). Everything I have tried results in Word seeing a picture instead of text. I cxan make
> true text by changing the cell to InputForm, which loses the nice columnar layout. I need to keep
> the data in the MatrixForm layout. Can I do this without recoding my output?
> Thanks for any tips.
>
> Steve Gray
>
>


--
Chris Chiasson
http://chrischiasson.com/contact/chris_chiasson

Clifford Martin

unread,
Sep 20, 2005, 5:48:02 AM9/20/05
to
One small addition here. To make this work the output
cell has to be converted to Output Form, otherwise all
the formatting is carried with it.

Cliff


--- David Bailey <dave@Remove_Thisdbailey.co.uk>
wrote:

> Steve Gray wrote:
> > I have some matrices of modest width (they fit
> across the screen easily) whose numeric
> > contents I want to copy into MS Word so I can
> reformat them by hand (underlines, italics, etc.,
> > selectively). Everything I have tried results in
> Word seeing a picture instead of text. I cxan make
> > true text by changing the cell to InputForm, which
> loses the nice columnar layout. I need to keep
> > the data in the MatrixForm layout. Can I do this
> without recoding my output?
> > Thanks for any tips.
> >
> > Steve Gray
> >

Mike

unread,
Sep 22, 2005, 5:44:05 AM9/22/05
to
On 19/9/05 7:29 PM, in article dgm0d0$nov$1...@smc.vnet.net, "Chris Chiasson"
<chris.c...@gmail.com> wrote:

> *There is a convoluted way that involves conversion to LaTeX and then
> to RTF and then to Word. I don't know if it works for matrices.

It does. http://library.wolfram.com/infocenter/MathSource/5698/

However if you only want to convert a single MatrixForm cell as opposed to
an entire notebook then a more direct way is this:

[In1]:= ls = DiagonalMatrix[{a, b, c, d}];

[In2]:= ls2 = MatrixForm[ls]

Then

[In3]:= Display["!latex2rtf -o ls2.rtf", ls2, "TEX"]

This assumes that you have latex2rtf installed. The switch "-o" is for
naming of the output file, in this case ls2.rtf.

When you open ls2.rtf you will notice that the matrixform is a field. You
can double click this and it will open the MS Word equation editor and you
will need to do this (opening and then closing the equation editor) to get
it to display correctly.

Mike

0 new messages