From NewWiki

This is the HTML version of the notebook:Tips.nb

Tips for Mathematica Slide Show Presenters

The Creating Slide Shows entry in the Help Browser details how to create slides in a notebook and how to begin presenting a slide show. This document picks up where that one leaves off, offering time-saving tips and presentation suggestions.

Contents

Authoring

General Authoring Tips

Style Sheets

Working with Style Sheets

Advanced: Editing Style Sheets

Preparation

Preparing Your Notebook for Presentation

Saving Your Notebook before Distribution

Troubleshooting

In-Presentation

Useful Keyboard Shortcuts

General Authoring Tips

Converting an Existing Notebook to a Slide Show

Note: You can copy and paste navigation bars (those cells that contain the

 ◂ ▸ 
buttons) just as you might any other cell.

You must place a navigation bar at the very top of your notebook. Otherwise you will not see the bar when you start your slide show (done by switching to the Slide Show environment). If you do find yourself on a page without navigation bars, you can either use the ">keyboard shortcuts for navigation, or switch to the Working environment and paste a navigation bar in the appropriate place.

Clicking on the following button inserts a navigation bar cell before each cell of style Title or Section in the InputNotebook[]. To make the button a palette that can be used with any notebook, simply select the button's cell bracket and choose File |> Generate Palette from Selection. Alternatively you can simply copy the button into the notebook you wish to convert to a slide show and click on it there.

Insert  Navigation  Bars  before <br />all  Title  and  Section  Cells

In the Slide Show environment, the vertical scroll bar is shown only on slides long enough to need it. If you keep slides sufficiently short you will have no scrolling to do - one less thing to worry about during your presentation.

Creating Two-Column Content

For two-column content, create Bilateral Cells using the AuthorTools palette, found in the{Automatic, Automatic}[ ]File |> Palettes menu.

Example use: For a step-by-step guide to creating a cell containing an image (e.g. a logo) with text alongside, click here.

Setting the Default New Cell Style

If you are authoring mostly non-input cells, you may find it worthwhile to change the default style for new cells. There are several ways to do this:

Use the Option Inspector, which you can access through

1. The menu item Format |> Option Inspector... or

2. The keyboard shortcut [SHIFT]-[CTRL]-[O] ([SHIFT]-⌘-[O] on Mac) or

3. Right-clicking ([CTRL]-[click] on Mac) on the cell bracket and choosing Option Inspector from the pop-up menu.

To set  the default new cell style, choose Format |> Option Inspector, then navigate to Cell Options |> New Cell Defaults |> DefaultNewCellStyle or simply search for DefaultNewCellStyle.

Programmatically:

SetOptions[InputNotebook[], DefaultNewCellStyle -> "Text"]

At the style-sheet level:

This approach and its consequences are explained in a related ">advanced tip.

Example use: When starting a talk from scratch, set the default new cell style to Section for ease in outlining your talk's headings.

Selecting All Cells of the Same Style

To select all cells of a given style, hold down [ALT] and then select the cell bracket of any one cell of that style. Notice that all cells of that style are now highlighted.

Example uses:

Overview slide:

Select all cells of the style you have chosen for your section headings. Copy and paste the resulting selection into a new slide. Convert the style of the pasted cells to Subsubsection, or a similar style, for emphasis.

Convert all graphics to bitmap format:

See the tip for ">reducing file size.

Delete all Output cells:

Select all cells of the style Output, then simply hit [DEL].

Hyperlinks

To set up a hyperlink, just select the text or other object that you want to be a hyperlink. Then choose the menu item  Input |> Create Hyperlink... and fill in the specification of where you want the destination of the hyperlink to be. You can link to an external notebook or url, or to a particular cell in a notebook, indicated by a cell tag.

Note that a graphic can be made into a hyperlink.

Reference Setting Up Hyperlinks in the Help Browser.

Example use: Add hyperlinks from each of an overview slide's headings to the corresponding sections.

Working with Style Sheets

Best-Practice Advice

In the standard style sheets, styles can look very different depending on the screen environment in which you view them. To be sure that your presentation will look as expected, edit it in the Slide Show screen environment.

Avoid using blank lines to space cells apart. Instead, for more fine-grained control, make use of the CellMargins option. This can be done using the Option Inspector. It is advisable to change cell margins in the styles' definitions in the style sheet, rather than explicitly in individual cells. See ">advanced tip.

Keyboard Shortcuts

To change the style of the cell in which you are typing, you can use the expand selection shortcut ([CTRL]-[.]) repeatedly until the cell bracket is selected. Then use [ALT]-[#], where # is the integer shortcut for the style you wish to use (Mac users should press ⌘ in place of [ALT]) . Alternatively, use [ALT]-[0] or ⌘-[0] to get a prompt into which you can enter the desired style's name. See screenshots below.

[Graphics:HTMLFiles/Tips_17.gif]

Windows and Mac OS X screenshots showing the shortcuts for styles in the Default style sheet in Mathematica 5.0.

Cell Brackets

The Slide Show screen environment does not typically show cell brackets for most styles. You should therefore have all cell groups open before entering this envirnoment. You may wish to make use of this advanced tip for ">progressively revealing content.

You can use [CTRL]-[A] or ⌘-[A] to select all cells, then on Windows systems press [CTRL]-[}] or on Mac systems press [SHIFT]-⌘-[}] to open all cell groups.

To force cell brackets to always appear you can explicitly set the option ShowCellBracket -> True in individual cells or make changes to the style sheet (see ">advanced tip).

Navigation Bars

Modifying the Navigation Bars' Appearance

You can change the navigation bars' look and positions of its elements.

Examine the cell expression of an individual navigation bar and the style definitions in the style sheet (look for the style SlideShowNavigationBar, normally under the section heading, "Slide Show Styles", towards the end of the style sheet notebook).

For instance, it is a very easy matter to change the background color of the navigation bars. If you wish to specify the background color using the Option Inspector, make sure to set Editable->True for the SlideShowNavigationBar style.

As an example, add the following definition to your style sheet to have the navigation bars appear as thin red lines when the notebook is in the Working screen environment:

Cell[StyleData["SlideShowNavigationBar", "Working"],
CellFrame -> {{0, 0}, {1, 1}},
ShowCellBracket -> False,
CellGroupingRules -> {"SectionGrouping", 30},
Background -> RGBColor[1, 0, 0],
CellMargins -> {{0, 0}, {1, 1}},
CellElementSpacings -> {"CellMinHeight" -> 0.1},
CellFrameColor -> RGBColor[1, 0, 0],
CellSize -> {Inherited, 1},
ButtonBoxOptions -> {ButtonFrame -> None},
ShowCellTags -> True]

Hiding the Navigation Bar

If you are comfortable using the shortcuts [ALT]-[PgDn] and [ALT]-[PgUp] to move between slides during your presentation, then you can suppress the navigation bar by adding the option CellOpen->False to the definitions for style SlideShowNavigationBar in the SlideShow screen environment. The cell expression to be modified begins, Cell[StyleData["SlideShowNavigationBar", "SlideShow"].

Advanced Tips:

Progressively revealing content

To control the granularity at which content on individual slides can be revealed to your audience, you can use the ShowGroupOpenCloseIcon setting. When set as True, this displays a triangle symbol to the left of the leading cell in a cell group. Clicking the triangle opens or closes the cell group. Add the option ShowGroupOpenCloseIcon->True to any cell or to the definition of any style for which you want this feature.

Hiding individual cells

Use the cell option CellOpen->False on any individual cell(s) that you would like to hide during the presentation.

Example use: Author's Notes.

1.  Use the Find |> Add/Remove Cell Tags... dialog to add a cell tag such as "Notes" to all cells containing notes intended for the author only.
2.  Click on "Notes" in the Find |> Cell Tags menu to select all cells containing the tag "Notes".
3.  Use the Option Inspector to set the option CellOpen->False for the selection.

Advanced alternative approach:

Create a new cell style called "Notes", say, in the notebook style sheet and set the option CellOpen->False within the style's definitions for the Slide Show environment. See How to Create Your Own Style Sheet for more information.

Advanced: Editing Style Sheets

Important: If you make any changes to a notebook's style sheet, remember to embed that style sheet before sending the notebook to anyone else or opening the notebook on another machine. To do this, select "Import Private Copy" from the Format |> Edit Stylesheet... menu. It's best to do this before making any style definition changes, to guarantee that you will see the results of your changes immediately.

Basics

Select Format |> Edit Stylesheet... to begin editing.

You can select a cell in the style sheet notebook and edit the cell options through the Option Inspector. Be sure that the pop-up menu labeled Show option values for is set to selection.

'Style definition cell' refers to any cell that begins with "Prototype for style" or "Modification for style"

[Graphics:HTMLFiles/Tips_23.gif]

Style sheet screenshot: Style definition cells for "Text" and "Small Text"

With the cell bracket of a style definition cell selected, you can edit it in any of the following ways:

Use the Option Inspector.

Use Format menu items such as Background Color, Cell Dingbat, Text Alignment, etc.

Choose the menu item Format |> Show Expression to edit the underlying cell expression directly.

In the image above, the cell which displays Modification for style 'Text' in style environment 'SlideShow': has the following cell expression:

Cell[StyleData["Text", "SlideShow"], FontSize->18]

This means that a text cell in the Slide Show environment inherits all the style definitions given in the cell displaying "Prototype for style 'Text':" but with the font size increased to 18pt.

The first nine style definitions in the style sheet are assigned shortcuts (see screenshot).  You can reorder the definitions in the style sheet to bring the styles you use most frequently to the top. Note, of course, that any such reordering will affect the shortcuts (if any) assigned to other styles (i.e., the standard [ALT]-[9] or ⌘-[9] may no longer refer to "Input").

The real test of a newly created or changed style is to input a new cell of that style and see if it looks as expected.

As you move options into the style sheet definition make a habit of removing those options from your individual cells.

To see the options given explicitly in a cell in your notebook, use Format |> Show Expression

Use the Format menu item Remove Options... to clear all options given explicitly in a cell.

Show/Hide Cell Brackets

If you would like to be able to see cell brackets while in the Slide Show screen environment, do one of the following:

Modify the SlideShow screen environment :

1. Under the section heading "Style Environment Names" select the cell displaying "Modification for all styles in style environment "SlideShow".

2. With the cell bracket selected, use the Option Inspector to set ShowCellBracket->True or modify the cell expression directly.

Create another style environment "SlideShowBrackets":

1. Under the section heading "Style Environment Names" copy the cell displaying "Modification for all styles in style environment "SlideShow".

2. Paste the cell under the same section heading and modify the cell expression directly.

3. Set ShowCellBracket->True and change "SlideShow" to "SlideShowBrackets" or whatever you wish to call it.

Modify the Cell Margins

With a style definition cell selected, you can manipulate left and right CellMargins using the tabs shown in the Ruler.

Set the Default New Cell Style

It is possible to set the DefaultNewCellStyle in the style sheet. Add the option DefaultNewCellStyle->"Text", say, in the cell displaying Prototype for style: "Notebook":, found under the section heading "Notebook Options" toward the top of any standard style sheet. With this option set, all notebooks that use this style sheet will have this setting for DefaultNewCellStyle. You can overwrite this option on a per-notebook basis by evaluating the following command within each desired notebook:

SetOptions[InputNotebook[], DefaultNewCellStyle -> "Text"]

Compare Two Style Sheets

Find differences between two style sheets using StyleSheetDiff[nb1, nb2]. For details, look in in the help browser under StyleSheetDiff.

Preparing Your Notebook for Presentation

Checks

Edit |> Check Spelling... .

Check that all hyperlinks give the desired results.

Hide the Toolbar (Ensure Format |> Show Toolbar is not checked).

Hide the Ruler (Ensure Format |> Show Ruler is not checked).

Set-up

Magnification

Magnification can be set at selection, cell, notebook, or global level.

If required, increase magnification using any one of the following methods:

Use the magnification pop-up menu at the bottom of the notebook's window frame.

Select from the options within the Format |> Magnification menu.

Evaluate SetOptions[InputNotebook[], Magnification->1.5] to set the magnification to 150%, and similarly for other values.

Rerender Graphics

If your presentation contains graphics cells and you choose to alter the notebook's magnification, your graphics may look bad. To remedy this, select all graphics cells and use the menu item Cell |> Rerender Graphics, which renders all selected cells that contain PostScript graphics.

Adjust colors to look better with LCD projectors

Use the gamma correction/color correction setting in your system's Displays control panel to adjust colors to look better with LCD projectors.

(Windows-specific) Hide the taskbar

To auto-hide the taskbar during your presentation:

Right-click on the taskbar.

Select Properties from the pop-up menu.

Within the Taskbar tab, select "Auto-hide the taskbar."

Select OK to exit.

Preparing Your Notebook for Distribution

Embed Style sheet

If your notebook does not use one of the standard style sheets that ship with Mathematica, embed its style sheet before emailing or uploading the files for web download. To do so, select Format |> Edit Style Sheet... and choose "Import Private Copy".

Reduce File Size

Use the tip given above to select all Graphics cells. Then, select Cell |> Convert To |> Bitmap and re-save your notebook. This can often reduce a file to under 5% of its original size and guarantees that any imported OS-specific graphics get converted to a platform-independent format viewable on all operating systems. Caution: if, for some reason, the magnification of the resultant notebook is later changed, your bitmaps will look bad.

Advanced: To further reduce file size you can edit an embedded style sheet, deleting styles you will not use. Note that this may change shortcuts assigned to styles and, in particular, missing styles may cause confusion if recipients of your notebook later attempt to edit it.

Magnification

Assuming recipients will read the notebook on their personal computers, ensure that the magnification is set to 100%.

Window Size

Resize the notebook window to a reasonably small size and resave, taking into consideration recipients with a small screen.

Example use: To set the window size to 800x600, evaluate the following:

SetOptions[InputNotebook[], WindowSize-> {800, 600}]

Cleanup Cell Tags

Check through the document for nonsensical cell tags, relics of copy and paste operations, etc. The Find |> Add/Remove Cell Tags... dialog can be used for this purpose.

Troubleshooting

I can navigate to a slide that does not have navigation bars

There may be a page break defined in one of the following places:

The first cell on the slide with no navigation bar

The last cell on the previous slide

In the style sheet's definition for at least one of those cells.

Remove or overwrite the page break(s) using PageBreakAbove->False or PageBreakBelow->False, as required.

It may help to use Format |> Show Page Breaks to quickly identify the whereabouts of any explicit page breaks.

The navigation bars are not displaying correctly

Check the notebook style sheet to see that there are style definitions for SlideShowNavigationBar, which normally appear under the section heading "Slide Show Styles". If the definitions are not present, copy and paste them from another style sheet.

My graphics look bad

A change in notebook magnification can cause this. See rerender graphics.

In-Presentation Tips

Moving through Slides

Use [ALT]-[PgDn] to move through slides, especially those with complex graphics, to avoid scrolling past them and experiencing unnecessary delays while the Mathematica FrontEnd renders them.

Opening Cell Groups

To open/close the current cell group, you can use the keyboard shortcut [ALT]-['] or  ⌘-[`]

Evaluate Next Input

The shortcut [SHIFT]-[ENTER] (note this is not the ↵ key) does one of two things: If an Input cell is selected, this shortcut evaluates that cell; otherwise, it selects the next Input cell.

Example use: You can use this shortcut during your presentation to avoid having to use your mouse to move to the next input cell.

Further Useful Shortcuts

Last input: [CTRL]-[L]  or ⌘-[L]

Last output: [SHIFT]-[CTRL]-[L] or [SHIFT]-⌘-[L]

Cycle through open Mathematica windows:  [CTRL]-[F6] or ⌘-[`]

The Help Browser lists all available keyboard shortcuts for Windows, Macintosh, and X.


Created by Mathematica  (May 13, 2005) Valid XHTML 1.1!
Retrieved from Tips.nb .
Personal tools