AuthorTools Starter Kit

Initialization

Set the directory...

SetDirectory["/Users/kieran/mathem/AuthorToolsDemo"]

Below we load the packages we need:

Needs["AuthorTools`"]
Needs["AuthorTools`MakeProject`"]
Needs["AuthorTools`MakeIndex`"]
Needs["AuthorTools`MakeContents`"]
Needs["AuthorTools`Experimental`"]
Needs["AuthorTools`Common`"]
Needs["AuthorTools`NotebookRestore`"]

Here is a handy list of all the commands we loaded.   They'll be discussed more below.  Click on any command to see an explanation.

?AuthorTools`MakeProject`*

?AuthorTools`MakeIndex`*

?AuthorTools`MakeContents`*

?AuthorTools`NotebookRestore`*

Making the Project

?AuthorTools`MakeProject`*

The information in a project is stored in a "project file."   You will of course have to create this the first time.  Here's the format:

projectData={"Name"->"ATDemo","Directory"->"/Users/kieran/mathem/AuthorToolsDemo/","Files"->{"2Dplots.nb","3Dplots.nb"}};

Let's put it in a "Master File"  called "foo.m"

WriteProjectData["foo.m",projectData]

You should update the file (even in a simple text editor if you wish).   You then read in information from the file, e.g.

ProjectFiles["foo.m"]

Table of Contents

Delete the file if it exists:

DeleteFile["TOC.nb"]

MakeContents["foo.m","Simple",SelectedCellStyles->{"Title"},ContentsFileName-> "TOC.nb"]

Let's look at the options on MakeContents:

Options[MakeContents]

We can extract different fields of information:

DeleteFile["TOC.nb"]

MakeContents["foo.m","Simple",SelectedCellStyles->{"Title","Section","Subsection","Subsubsection","Commentary"}]

Pagination

?AuthorTools`Pagination`*

This can be helpful if you are accessing sections within large notebooks.

Paginate["foo.m"]

MakeContents["foo.m","Book",SelectedCellStyles->{"Title","Section","Subsection","Subsubsection","Commentary"}]