Changes

Jump to navigation Jump to search
799 bytes added ,  16:06, 18 April 2006
The <code>section-3</code> corresponds to <code>section</code>. Similarly,
<code>section-1</code> corresponds to <code>part</code>, <code>section-2</code> corresponds to <code>chapter</code> and so on.
 
===Using colors in chapters and sections===
 
If you want you may have colors on your document's chapters or sections.
To do that you should use <code>\setuphead</code>.
Take a look at the following example:
 
<texcode>
\setupcolors[state=start] % Important. You won't have colors without it.
 
\setuphead[chapter][header=empty] % Chapter pages won't have headers
 
\setupheadertexts[][chapter] % The header will be the chapter's name
 
\starttext
 
\completecontent
 
\chapter{Black chapter 1}
 
\setuphead[section][color=darkcyan] % This is how you change your chapter's color.
 
\section{Dark cyan section 1.1}
 
\page
Test.
 
\setuphead[chapter][color=darkgreen]
 
\chapter{Dark green chapter}
 
\page
Test.
 
\setuphead[chapter][color=red]
 
\chapter{Red chapter}
 
\page
Test.
 
\stoptext
 
</texcode>
==Your Own Titling Levels==
1

edit

Navigation menu