Options for Notebooks
| • Use the Option Inspector menu to change options interactively. |
| • Use SetOptions[obj, options] from the kernel. |
| • Use CreateWindow[options] to create a new notebook with specified options. |
Ways to change the overall options for a notebook.
This creates a notebook displayed in a 40x30 window with a thin frame. |
Style options for a notebook.
In giving style definitions for a particular notebook,
Mathematica allows you either to reference another notebook, or explicitly to include the
Notebook expression that defines the styles.
General options for notebooks.
Options specifying default styles for cells created in a notebook.
Mathematica allows you to take any cell option and set it at the notebook level, thereby specifying a global default for that option throughout the notebook.
A few cell options that are often set at the notebook level.
Here is a notebook with the Background option set at the notebook level. |
Characteristics of the notebook window.
WindowSize allows you to specify how large you want a window to be;
WindowMargins allows you to specify where you want the window to be placed on your screen. The setting
WindowMargins->{{left, right}, {bottom, top}} gives the margins in pixels to leave around your window on the screen. Often only two of the margins will be set explicitly; the others will be
Automatic, indicating that these margins will be determined from the particular size of screen that you use.
WindowClickSelect is the principal option that determines whether a window acts like a palette. Palettes are generally windows with content that acts upon other windows, rather than windows which need to be selected for their own ends. Palettes also generally have a collection of other option settings such as
WindowFloating->True and
WindowFrame->"Palette".
DockedCells allows you to specify any content that you want to stay at the top of a window and never scroll offscreen. A typical use of the
DockedCells option is to define a custom toolbar. Many default stylesheets have the
DockedCells option defined in certain environments to create toolbars for purposes such as presenting slideshows and editing package files.
| "Normal" | an ordinary window |
| "Palette" | a palette window |
| "ModelessDialog" | a modeless dialog box window |
| "ModalDialog" | a modal dialog box window |
| "MovableModalDialog" | a modal dialog box window that can be moved around the screen |
| "ThinFrame" | an ordinary window with a thin frame |
| "Frameless" | an ordinary window with no frame at all |
| "Generic" | a window with a generic border |
Typical possible settings for WindowFrame.
Mathematica allows many different types of windows. The details of how particular windows are rendered may differ slightly from one computer system to another, but their general form is always the same.
WindowFrame specifies the type of frame to draw around the window.
WindowElements gives a list of specific elements to include in the window.
| "StatusArea" | an area used to display status messages, such as those created by StatusArea |
| "MagnificationPopUp" | a popup menu of common magnifications |
| "HorizontalScrollBar" | a scroll bar for horizontal motion |
| "VerticalScrollBar" | a scroll bar for vertical motion |
Some typical possible entries in the WindowElements list.
Here is a window with a status area and horizontal scroll bar, but no magnification popup or vertical scroll bar. |