How can I transfer code from a Mathematica notebook to a Microsoft Word document in a way that all formatting I see in the notebook is preserved?
I want to preserve the font, the indentation and the syntax colouring.
I am using Mathematica on Windows.
Answer
The user Szabolcs gave the answer.
Here are the steps:
- Open your Mathematica Notebook
- Ctrl+A, if you want to selct all your cells or simply select your desired cells
- Go to: Edit -> Copy as -> Metafile
- Open Word: Ctrl+V (paste)
:)
Comments
Post a Comment