Formatting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Word's IDE is what you're looking at if you press Alt-F11: an environment
for writing code.
 
Back
Top