How do I include something from an unnumbered page in table of contents?
Also: How can I add something with a page number to the table of contents without the page number being displayed?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHow do I include something from an unnumbered page in table of contents?
Also: How can I add something with a page number to the table of contents without the page number being displayed?
There are two commands to explicitly insert material in the table of contents:
\addtocontents{ext}{text}
and
\addcontentsline{ext}{type}{text}
where ext
is the table of contents type (e.g., toc
, lof
) and type indicates how the text
is going to be formatted (you can create new types by defining new \l@type
commands).
\addcontentsline
adds the page number, while \addtocontents
adds text
to ext
.