I've have a Word document that I'd like to import to Mathematica. I could just copy and paste, but when I do, I lose the underlined text. Is there a way to get MS Word text into Mathematica while preserving the underlining of words.
You can transfer styled text from Word to Mathematica using an intermediate file rich-text format (.rtf). Here is how.
- In Mathematica create an empty text cell (Cmnd+7 in OS X). Do not move the insertion point out of this cell.
- In Word, select the text you want to copy and save as an .rtf file. I don't use Word, so I don't know if you do selection save or a selection export, but I'm pretty sure one or other is available because RTF is a Microsoft format.
- Go back to Mathematica and choose File... from the Insert menu. In the system file open dialog that appears, choose the .rtf file you just made and open it.
- You should now see your text with most of its formatting preserved. Underlined words will certainly be preserved.