\stoptext
</context>
== Explicitly Excluding Headings from the Table of Content ==
To exclude headings from the table of contents, create a new heading that is a copy of the current heading. The new heading will not be in the list of heading that are printed to the table of contents. The command to create a copy of a heading is \definehead. Below is an example of excluding some subheadings from the table of contents. Note that typically this would be done for all subsections under a specific section, but as seen below this is not required:
<context source="yes">
\starttext
% The first parameter is the new heading name, and the second is the
% name of the heading that is copied.
\definehead[mysubsection][subsection]
\startcolor[darkgreen]
\completecontent
\stopcolor
\page[yes]
\section{First section}
\subsection{First subsection}
\mysubsection{Second subsection}
\subsection{Third subsection}
\stoptext
</context>
== Page Numbering in Table of Contents ==