Changes

Jump to navigation Jump to search
1,837 bytes added ,  02:06, 4 September 2005
A page on unnumbered sections. Can someone make the table pretty?
== LaTeX ==

In LaTeX, unnumbered sections, subsections, and so forth can be produced by adding an asterisk to the sectioning command, as in this example.

<texcode>
\section{A numbered section}
\subsection*{An unnumbered subsection}
\subsection{A numbered subsection}

\section*{An unnumbered section}
\subsection{A numbered subsection}
\subsection*{An unnumbered subsection}

\section{Another numbered section}
</texcode>

== ConTeXt ==

ConTeXt provides the same functionality, but the names are different. The following table shows the correspondences:

<table>
<tr>
<th>Numbered</th> <th>Unnumbered</th>
</tr>
<tr>
<td><cmd>part</cmd></td> <td> </td>
</tr>
<tr>
<td><cmd>chapter</cmd></td> <td><cmd>title</cmd></td>
</tr>
<tr>
<td><cmd>section</cmd></td> <td><cmd>subject</cmd></td>
</tr>
<tr>
<td><cmd>subsection</cmd></td> <td><cmd>subsubject</cmd></td>
</tr>
<tr>
<td><cmd>subsubsection</cmd></td> <td><cmd>subsubsubject</cmd></td>
</tr>
</table>

Thus, the previous example can be written in ConTeXt as the following:

<texcode>
\section{A numbered section}
\subsubject{An unnumbered subsection}
\subsection{A numbered subsection}

\subject{An unnumbered section}
\subsection{A numbered subsection}
\subsubject{An unnumbered subsection}

\section{Another numbered section}
</texcode>

And this produces the following typeset output. Note that, as with LaTeX, a numbered subsection of an unnumbered section doesn't work correctly. Here, unlike in LaTeX, it inherits the "parent" number from the preceeding numbered section.

<context>
\section{A numbered section}
\subsubject{An unnumbered subsection}
\subsection{A numbered subsection}

\subject{An unnumbered section}
\subsection{A numbered subsection}
\subsubject{An unnumbered subsection}

\section{Another numbered section}
</context>

Navigation menu