CTAN Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/tableof



  • Pack­age: tableof (Tables of tagged con­tents)
  • Ver­sion: 1.4b (2018/10/02)
  • Li­cense: LPPL 1.3c
  • Copy­right (C) 2012-2018 Jean-Fran­cois Burnol <jfbu at free dot fr>

The com­mands \toftagstart, \toftagstop, \toftagthis, \tofuntagthis are used to tag chap­ters, sec­tions or any other sec­tion­ing units des­tined to end up in the ta­ble(s) of con­tents. Then:

\nexttocwithtags{req. 1, req. 2, ... }{excl. 1, excl. 2, ... }
\tableofcontents % or equivalent command

spec­i­fies which tags are to be re­quired and which ones are to be ex­cluded from the type­set TOC.

For doc­u­ments with classes where \tableofcontents is only sin­gle-use, the pack­age pro­vides:

\tableoftaggedcontents{req. 1, req. 2, ... }{excl. 1, excl. 2, ... }

which does not have this re­stric­tion.


For ex­tract­ing the style file:

latex tableof.dtx

Files tableof.sty, tableof.ins and tableoftest.tex are gen­er­ated on the first la­tex run. Move tableof.sty to a suit­able lo­ca­tion within the in­stal­la­tion:

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

To pro­duce the doc­u­men­ta­tion:

latex tableof.dtx (a second time)
dvipdfmx tableof.dvi

tableof.ins is for dis­tri­bu­tions ex­pect­ing it.

tableoftest.tex is an ex­am­ple of use of the pack­age com­mands. Run la­tex twice on it to see ex­am­ples of tagged ta­bles of con­tents.

Change His­tory

  • v1.4b (2018/10/02) fix to bug when a doc­u­ment ended with \clearpage be­fore the \end{document}. tableof now re­quires atveryend pack­age.
  • v1.4a (2015/03/10) changes for en­hanced com­pat­i­bil­ity with etoc.
  • v1.4 (2015/02/20) un­der the hood code im­prove­ments.
  • v1.3 (2015/02/11) comma sep­a­rated lists of tags now al­low spaces.
  • v1.2 (2013/03/04) added com­mand \tableoftaggedcontents.
  • v1.1 (2012/12/13) added com­mand \nexttocwithtags.
  • v1.0 (2012/12/06) first re­lease.


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


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

Down­load the con­tents of this pack­age in one zip archive (66.7k).

tableof – Tag­ging ta­bles of con­tents

The pack­age pro­vides the com­mands to flag chap­ters or sec­tions (or any­thing else des­tined to be­come a TOC line). The com­mand \next­tocwith­tags{req1,req2,...}{ex­cl1,ex­cl2,...} spec­i­fies which tags are to be re­quired and which ones are to be ex­cluded by the next \table­of­con­tents (or equiv­a­lent) com­mand. In a doc­u­ment that uses a class where \table­of­con­tents may only be used once, the com­mand \table­of­tagged­con­tents{req1,req2,...}{ex­cl1,ex­cl2,...} may be used to pro­vide sev­eral ta­bles.

Ver­sion1.4b 2018-10-02
Li­censesThe Project Public Li­cense 1.3
Copy­right2012–2018 Jean-Fran├žois Burnol
Main­tainerJean-Fran├žois Burnol
Con­tained inTeX Live as tableof
MiKTeX as tableof
TopicsTOC etc
Guest Book Sitemap Contact Contact Author