How do I write a package?
 There are three main ways to create packages. | | Packages are ASCII/Text files that contain InputForm Mathematica commands. Comments can be included inside (* and *). |
| 2. | Mathematica menu command |
| | This saves a notebook as a package. All input cells that are initialization cells will be included in the package. All other cells will be saved as comments. You can set the Initialization Cell property for a cell with the following menu command. |
| | You can also use the Option Inspector, which can be accessed via . Please see the following FAQ for more information about the Option Inspector. |
| | You can set the option in the Option Inspector by selecting the following menu command. |
| | When saving a notebook with initialization cells, Mathematica may ask if you want to create an AutoSave package, depending on the settings of the following two options. |
| | If an AutoSave package is created, all initialization cells are saved in the package. All other cells are omitted. A special header is also added at the beginning of the package. |
Download this FAQ as a Mathematica 5.2 Notebook
Questions or comments? Send email to support@wolfram.com.
| |