Mathematica 8 is now available

Manipulating Notebooks

Handling Generated Notebooks

Separation of FE and kernel creates a need for a 'handle' to a notebook expression that is in the front end.

[Graphics:../Images/Novak_FEProgramming_gr_6.gif]

A few handles to specific notebooks:

[Graphics:../Images/Novak_FEProgramming_gr_7.gif]

Some commands:

[Graphics:../Images/Novak_FEProgramming_gr_8.gif]

Examples

Changing the Selection

Current selection corresponds to a highlighted section of a notebook in the front end. The current selection can be changed in a number of ways, such as moving it and searching for matching text.

[Graphics:../Images/Novak_FEProgramming_gr_12.gif]

[Graphics:../Images/Novak_FEProgramming_gr_13.gif]

Examples

Changing Options

[Graphics:../Images/Novak_FEProgramming_gr_18.gif]

Setting for a Whole Notebook
Setting for the Selection

Tagging Cells

It is very useful to be able to assign a 'name' to a cell. The CellTags option lets us do this.

[Graphics:../Images/Novak_FEProgramming_gr_22.gif]

[Graphics:../Images/Novak_FEProgramming_gr_23.gif]

Example
A More Useful Example

Generalization to the Front End

The front end as a whole also has an object, stored in $FrontEnd. It only has options that can be changed.

[Graphics:../Images/Novak_FEProgramming_gr_29.gif]

Examples