Formatting

S

Shezaan

I use a program called Matlab for some of my Engineering programming needs.
Matlab is not a text editor but is a full fledged programming IDE with syntax
hilighting and autoindentation etc. My problem is that when I copy and paste
the programs to Word 2003 the formatting, highlighting etc all dissapear and
appear only as my default font i.e verdana. Can anyone help me in this matter
since I would like to preserve the formatting settings from one program to
another (woord 2003) in general.

Thanks
 
J

Jezebel

The problem is what's getting put into the Clipboard when you copy, so there
might not be any good answer here. Experiment with the options on the Edit >
PasteSpecial dialog; but generally, Word will retain the formatting only if
the source program is putting the text onto the clipboard with the
formatting encoded in a form that Word recognises -- native Word format,
RTF, HTML/XML.

Possibly there's a work-around for you if you can print the Matlab program
to PDF, then open in Acrobat and save as Word. You'd need the full version
of Acrobat (or one of its clones) to do this.
 
C

Charles Kenyon

Sorry for my ignorance in not knowing what an IDE is. I expect it might mean
integrated development environment or something like that, or not.

Can you save from there into an .rtf file or something similar? Otherwise,
Jezebel's suggestion to print to .pdf is valid. My scanner comes with the
ability to print to image files which can then be OCR'd which might help.
OCR text seems to be messy, though.
 
J

Jezebel

Word's IDE is what you're looking at if you press Alt-F11: an environment
for writing code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top