| You may wish to save your work in a format other than the default Mathematica notebook for sharing or publication. Mathematica has a very robust system for exporting your documents to PDF, a popular file format. | |
This is a selection of examples from the complete
"How to" screencast. »
The simplest way to export a
Mathematica notebook to PDF is to use the menu item:
With the notebook you wish to export to PDF set as the active window, select , give the file a name, select PDF as the file type, and then click
Save.
In this example, the notebook saved to PDF contains a plot and a 10×10 matrix of random integers. The magnification in the PDF viewer was lowered to show the whole document:
You can also export individual cells, groups of cells, or other
Mathematica objects to PDF by selecting them and then using .
In addition, you can save to PDF from within a notebook itself. This is useful when you are exporting a large cell or exporting to PDF frequently or from within a program.
Create a plot to export. The plot here is the same one that was used in the notebook from the previous example:
| Out[8]= |  |
Export the plot to PDF (

specifies the most recent output):
| Out[9]= |  |
If you select the plot or its cell and then use to export it to PDF, the resulting PDF will match the one created here.
You can also export an entire notebook to PDF from within the notebook itself:
| Out[5]= |  |
Because exporting
EvaluationNotebook exports the whole notebook, even the
Export expression will show up in the PDF.
The screencast for this "How to" addresses omitting the
Export expression from the resulting PDF.