Difference between revisions of "Command/chapter"

From ConTeXt wiki
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
m (add Category Command/Sections)
Line 68: Line 68:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|chapter]]
+
[[Category:Command/Sections|chapter]]

Revision as of 03:27, 21 March 2012

\chapter

Syntax

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

Description

A chapter is one of the predefined heads.

comment

You can define heads yourself with \definehead. Change the chapter's appearance with \setuphead[chapter][...]


Example


\setuphead[chapter][page=no]

\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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: