Creating PalettesYou can make your own palettes that allow you to perform functions by clicking buttons. To create a palette that pastes expressions:- Choose Input
Create Table/Matrix/Palette. - Click Palette.
- Specify the dimensions of the palette in the dialog box. When you click OK, a blank palette will be inserted in your notebook.
- Insert whatever you want into each entry in the palette. You can use
to go from one entry to the next. - Select the cell containing the palette.
- Choose File
Generate Palette from Selection. A separate window containing the palette appears.
Click a button in the palette to paste its contents into the current notebook. To create a palette that performs evaluations:- Set up an empty palette using Input
Create Table/Matrix/Palette. - Fill in entries with expressions containing
objects. Enter each using the alias spl , where spl stands for selection placeholder. - Select the palette, and choose Input
Create Button Evaluate. - Choose File
Generate Palette from Selection.
To use the palette:- Select the expression to be evaluated.
- Click a button on the palette.
The selected expression replaces the placeholder, and the resulting expression is evaluated. The result is pasted into the notebook in place of the previously selected text.
To edit a palette:You can use Input Edit Button to edit a palette. TIPS
You can set up active palettes or buttons in a notebook using Cell Cell Properties Cell Active.
You can convert a palette back to a notebook using File Generate Notebook from Palette.
To save a palette, click the Close button. You will be prompted to save the palette.
In addition to spl , you can use pl to enter a placeholder for additional fields. For more information
Active elements in notebooks: The Mathematica Book, Section 1.3.6.
|