# \chapter

## Syntax

 \chapter[...,...,...]{...} [...,...,...] REFERENCE {...} CONTENT

## Description

A chapter is one of the predefined heads.

## Example



\starttext

\chapter{Once Upon A Time}

This is the simplest form of using a chapter.

\chapter[mykey]{Once Upon A Time 2}

But what if you want to refer to this chapter at another time?
Give it a key! Before the chapter put something between brackets.
That's your key. Now you can refer to it. See the next chapter,
\in{chapter}[next].

\chapter[next]{After A While}

As we said earlier in chapter \in[mykey], we ...

As this example shows, use $\backslash$in[...] to refer to a chapter with
that name.

\stoptext



produces