S c i e n t i f i c A r t s
WorkLife Requirements Purchase FAQ Documentation WLFW Blog ?
 

Notebooks Palette

The Palette

For the buttons and executable commands that are described n this section to work it is assumed that you have installed A WorkLife FrameWork™ and have loaded it.  This can be done either from the Load WorkLife Framework button on the supplied palette, by executing the command Needs["Diary`Diary`"], or by clicking on the following button:

"notebookspalette_1.gif"

By clicking on the on the Notebooks button on the All Palettes Palette, you will open the Notebooks Palette.  You can also open the Notebooks Palette by executing:

"notebookspalette_2.gif"

The Notebooks Palette displays the notebooks that reside in the Notebooks subdirectory of the current Diary notebook.  In addition to this, the Palette also has the administrative buttons for creating a new notebook or moving a chosen notebook into the current Diary's Notebooks directory.

Whenever a Diary is opened this Palette is refreshed to reflect the contents of the new Diary's Notebooks subdirectory.

"notebookspalette_3.gif"

The Notebooks Palette

The Palette Buttons

For the buttons and executable commands that are described n this section to work it is assumed that you have installed A WorkLife FrameWork™ and have loaded it.  This can be done either from the Load WorkLife Framework button on the supplied palette, by executing the command Needs["Diary`Diary`"], or by clicking on the following button:

"notebookspalette_4.gif"

"notebookspalette_5.gif"

The New Notebook button opens up a dialog box for creating a new notebook.  This dialog has a field for entering the name that you wish to give the new notebook.  When the notebook is created it will be placed in the Notebooks subdirectory that is within the Current Diary's directory.

To see what the current Diary is you can click on the Current Diary button in the Diary Access Palette.

The current Diary's directory is given by

"notebookspalette_6.gif"

And the Notebooks subdirectory is given by

"notebookspalette_7.gif"

The New Notebook dialog looks like this:

"notebookspalette_8.gif"

The New Notebook Dialog

When a Notebook is created it has a ToolBar at its top along with the name that you assigned to it in a Title cell just below the Toolbar.  The Title cell can, of course, be removed or edited, while the Toolbar cannot be deleted directly.  The Toolbar can however be either toggled open/closed through the function ToggleSaveBackupToolbarCellOpenClosed[nb] where nb is the NotebookObject of the Notebook. Also the functions DeleteSaveBackupToolbarCell[nb] and AddSaveBackupToolbarCell[nb] can be used to  completely delete the SaveBackupToolbarCell or to replace it if it has been removed.  The SaveBackupToolbarCell looks like:

The SaveBackupToolbarCell

"notebookspalette_9.gif"

The New Scratch button opens up a dialog box for creating a new scratch notebook.  This dialog has a field for entering the name that you wish to give the new scratch notebook.  When the scratch notebook is created it will be placed in the Scratch subdirectory of the Notebooks subdirectory that is within the Current Diary's directory.

A scratch notebook is a convenient place to put Mathematica calculations that are free form and unstructured.

To see what the current Diary is, you can click on the Current Diary button in the Diary Access Palette.

The current Diary's directory is given by:

"notebookspalette_10.gif"

And the Scratch subdirectory of Notebooks subdirectory is given by:

"notebookspalette_11.gif"

The New Scratch dialog looks like this:

"notebookspalette_12.gif"

The New Scratch Notebook Dialog

When creating a scratch notebook you can repeatedly use the same name for the notebook.  Each time you do this a new scratch notebook will be created with the name that you have given along with an integer appended to its end.  The integer starts with 1 and then increments by 1 each time you create a new scratch notebook with the given base name.

"notebookspalette_13.gif"

The Notebooks Directory button opens up the Notebooks subdirectory that is within the Current Diary's directory.

"notebookspalette_14.gif"

The Copy→Notebooks button opens up a browsing window that allows you to select a notebook.  A copy of this notebook will then placed in the Notebooks subdirectory that is within the Current Diary's directory.

"notebookspalette_15.gif"

This toggles Opened and Closed the SaveBackupToolbarCell at the top of a Notebook.  It has this effect on the current InputNotebook.  It has no effect on Diaries.

"notebookspalette_16.gif"

This button toggles open and closed the sub-palette containing the list of notebooks that are in the Notebooks subdirectory of the Current Diary's directory.  When one of these buttons is clicked, the associated notebook is opened.

The following seven buttons show the seven files that were in the current Diary's Notebooks directory at the time that this document was being written.

It is generally important to open notebooks (and Diaries) with buttons from the WorkLife FrameWork™ Package.  This is because when they are opened in this way additional information is added to the notebook so that it can be tracked in a variety of ways by the WorkLife FrameWork™ Package.

"notebookspalette_17.gif"

"notebookspalette_18.gif"

"notebookspalette_19.gif"

"notebookspalette_20.gif"

"notebookspalette_21.gif"

"notebookspalette_22.gif"

"notebookspalette_23.gif"

"notebookspalette_24.gif"

This button toggles open and closed the sub-palette containing the list of scratch notebooks that are in the Scratch subdirectory of the Notebooks subdirectory of the Current Diary's directory.  When one of these buttons is clicked, the associated scratch notebook is opened.  

In this case there are three scratch Notebooks with the base name test.  Each was created by entering test into the New Scratch dialog.  The Scratch Notebook test3 is the one that was most recently created.

"notebookspalette_25.gif"

"notebookspalette_26.gif"

"notebookspalette_27.gif"

Copyright ©, 2005→2009 Scientific Arts, LLC. All rights  reserved.

Copyright ©, 2005-2009 Scientific Arts, LLC