此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)
Mathematica HowTo
How to | Export to PDF
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, which is a popular file format for sharing and publishing.
This is a selection of examples from the complete 'How to' screencast »
In addition to using FileSave As... to save cells and notebooks as PDF documents, you can also do so from within a notebook itself.
Generate some graphics and a matrix to export to PDF:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//MatrixForm=
In[3]:=
Click for copyable input
Out[3]=
Export just the last graphic to PDF (% specifies the most recent output):
In[4]:=
Click for copyable input
Out[4]=
You can also export an entire notebook to PDF from within the notebook itself:
In[5]:=
Click for copyable input
Out[5]=
Because exporting EvaluationNotebook exports the whole notebook, even the Export expression will also show up in the PDF. The screencast for this "How to" addresses omitting the Export from the PDF.