CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/tableof



  • Package: tableof (Tables of tagged contents)
  • Version: 1.4c (2021/07/05)
  • License: LPPL 1.3c
  • Copyright (C) 2012, 2013, 2015, 2018, 2021 Jean-Francois Burnol <jfbu at free dot fr>

Provides \toftagstart{}, \toftagstop{}, \toftagthis{}, \tofuntagthis{} to tag chapters, sections or any other sectioning units destined to end up in the table(s) of contents. Then each one of

\tableof{required tags}
or \tablenotof{excluded tags}
or \tableoftaggedcontents{required tags}{excluded tags}

typesets a table of contents (with no heading) obeying the conditions. These macros can each be used multiple times in the document with varying arguments.

If the document contains no usage of \tableofcontents, the preamble should also contain an additional \AtBeginDocument{\tofOpenTocFileForWrite}.

The main \tableofcontents can also be influenced by tags like this:

\nexttocwithtags{required tags}{excluded tags}

Depending on the document class and packages \tableofcontents however may be usable only once, contrarily to the \tableof{} et al. package macros.

Change History

  • v1.4c (2021/07/05) additional efforts for biblatex compatibility. Allow style file extraction via etex, reword the abstract. Use utf8 source encoding.
  • v1.4b (2018/10/02) fix to bug when a document ended with \clearpage before the \end{document}. tableof now requires atveryend package.
  • v1.4a (2015/03/10) changes for enhanced compatibility with etoc.
  • v1.4 (2015/02/20) under the hood code improvements.
  • v1.3 (2015/02/11) comma separated lists of tags now allow spaces.
  • v1.2 (2013/03/04) added command \tableoftaggedcontents.
  • v1.1 (2012/12/13) added command \nexttocwithtags.
  • v1.0 (2012/12/06) first release.



  etex tableof.dtx

Move tableof.sty to a suitable location within the installation:

  tableof.sty -> <TDS>/tex/latex/tableof/

The tableoftest.tex file is provided as an example of use of the package.

To generate the documentation, execute:

latexmk tableof.dtx
dvipdfmx tableof.dvi


This Work may be distributed and/or modified under the
conditions of the version 1.3c of the LaTeX Project Public License.
This version of this license is in


The Author of this Work is:
    Jean-Francois Burnol <jfbu at free dot fr> 

Download the contents of this package in one zip archive (68.9k).

tableof – Tagging tables of contents

The package provides the commands to flag chapters or sections (or anything else destined to become a TOC line). The command \nexttocwithtags{req1,req2,...}{excl1,excl2,...} specifies which tags are to be required and which ones are to be excluded by the next \tableofcontents (or equivalent) command. In a document that uses a class where \tableofcontents may only be used once, the command \tableoftaggedcontents{req1,req2,...}{excl1,excl2,...} may be used to provide several tables.

Version1.4c 2021-07-05
LicensesThe Project Public License 1.3
Copyright2012, 2013, 2015, 2018, 2021 Jean-Fran├žois Burnol
MaintainerJean-Fran├žois Burnol
Contained inTeX Live as tableof
MiKTeX as tableof
TopicsTOC etc
Guest Book Sitemap Contact Contact Author