writes a table of contents for the specified notebook or project in the given format.


  • The first argument can be a notebook object, a notebook file, or a project file.
  • Possible formats include "Simple", "Book", or "BookCondensed". The default format is "Simple".
  • "Simple" lists all the entries without page numbers or any special formatting. This format is useful for checking that all topics are in the right order before generating a table of contents in one of the other two styles.
  • "Book" resembles a table of contents in a typical book, with each topic and subtopic on a separate line.
  • "BookCondensed" combines multiple subtopics on the same line to achieve a more compact appearance.
  • The following options can be given:
  • ContentsFileNameTOC.nbContentsFileName is an option to MakeContents that specifies the name of the generated contents file
    CellTagPrefixc:CellTagPrefix is an option for MakeContents that specifies the string that will start all cell tags added by MakeContents
    SelectedCellStyles{Title,Section,Subsection,Subsubsection}SelectedCellStyles is an option that determines what cells from the user's notebook are itemized when building a table of contents or browser categories; it can be set to a list of style names
Wolfram Research (2002), MakeContents, Wolfram Language function,


Wolfram Research (2002), MakeContents, Wolfram Language function,


@misc{reference.wolfram_2020_makecontents, author="Wolfram Research", title="{MakeContents}", year="2002", howpublished="\url{}", note=[Accessed: 16-January-2021 ]}


@online{reference.wolfram_2020_makecontents, organization={Wolfram Research}, title={MakeContents}, year={2002}, url={}, note=[Accessed: 16-January-2021 ]}


Wolfram Language. 2002. "MakeContents." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2002). MakeContents. Wolfram Language & System Documentation Center. Retrieved from