Changes

Jump to navigation Jump to search
729 bytes added ,  17:28, 20 April 2006
==Your Own Title Styles==
Sometimes the possibilities of <cmd>setuphead</cmd> aren't enough.Just You can define your own styling command like this:commands, as shown in the following examples. ===Expanded chapter titles===This example illustrates expanded chapter titles.
<texcode>
</context>
===Exercise numbers===
 
For a textbook, suppose that you collect the exercises in a section at the end of each chapter, with each exercise a subsection having a short title, and the exercises should be numbered only by the subsection (not 1.6.7 for example, just 7). The usage:
 
<texcode>
\section{Exercises}
 
\exercise{Batteries}
What is the cost of energy from a 9V battery? From a wall socket (the
mains)?
</texcode>
 
The setup code:
<texcode>
\definehead[exercise][subsection]
\setuphead[exercise][style=italic,
numbercommand={\determineheadnumber[subsection]\currentheadnumber
\gobbleoneargument}]
</texcode>
===A complex graphical element under the chapter title===
127

edits

Navigation menu