# Create a table of contents using AuthorTools\`MakeContents package?

**URL:** <https://community.wolfram.com/t/create-a-table-of-contents-using-authortools-makecontents-package/14896>\
**Category:** Questions\
**Tags:** authoring-and-publishing, packages-and-paclets, computational-notebooks\
**Created:** [October 21, 2019, 1:30pm UTC](https://community.wolfram.com/t/create-a-table-of-contents-using-authortools-makecontents-package/14896 "2019-10-21T13:30:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wernergg](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wernergg/32/6481_2.png) [@wernergg](https://community.wolfram.com/u/wernergg)\
**Post date:** [October 21, 2019, 1:30pm UTC](https://community.wolfram.com/t/create-a-table-of-contents-using-authortools-makecontents-package/14896/1 "2019-10-21T13:30:43Z")

</div>

I want to create a table of contents for my notebook “GgUtils Test.nb”:

```
<< AuthorTools`
Paginate[SelectedNotebook[]];
MakeContents[SelectedNotebook[], "Book", ContentsFileName -> "GgUtils Test TOC.nb"];

```

**This does just nothing**. Nowhere any File is created.

The symbol MakeContents is well known:

```
?? MakeContents

InformationData[
Association[
 "ObjectType" -> "Symbol", "Usage" -> "AuthorTools`MakeContents", 
  "Documentation" -> Association[
   "Local" -> "paclet:AuthorTools/ref/MakeContents"], 
  "OwnValues" -> None, "UpValues" -> None, "DownValues" -> None, 
  "SubValues" -> None, "DefaultValues" -> None, "NValues" -> None, 
  "FormatValues" -> None, "Options" -> None, "Attributes" -> {}, 
  "FullName" -> "AuthorTools`MakeContents"], True]

```

I should mention that I use the Programming Lab Desktop (newest version 12) and the notebook “GgUtils Test.nb” comes from a directory Home/Utils within the Wolfram cloud. Hence the TOC-notebook should be created there as well.

BTW: I do not want to create that TOC as a separate file, but just insert it at the beginning of my notebook. From the documentation I think, this is not directly possible. I must use some kind of Get, Write-program instead to copy the cells from the TOC-file into my notebook. From old entries in [mathematica.stackexchange.com](http://mathematica.stackexchange.com) I can see that this is non-trivial if I want to preserve the TOC-style “Book” for example.
