Apparatus and method for indexing a table of contents