Difference between revisions of "Unnumbered Sections"
Jump to navigation
Jump to search
m |
m (Text replacement - "</cmd>" to "}}") |
||
Line 26: | Line 26: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td><cmd>part | + | <td><cmd>part}}</td> <td> </td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td><cmd>chapter | + | <td><cmd>chapter}}</td> <td><cmd>title}}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td><cmd>section | + | <td><cmd>section}}</td> <td><cmd>subject}}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td><cmd>subsection | + | <td><cmd>subsection}}</td> <td><cmd>subsubject}}</td> |
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td><cmd>subsubsection | + | <td><cmd>subsubsection}}</td> <td><cmd>subsubsubject}}</td> |
</tr> | </tr> | ||
</table> | </table> |
Revision as of 13:17, 9 August 2020
LaTeX
In LaTeX, unnumbered sections, subsections, and so forth can be produced by adding an asterisk to the sectioning command, as in this example.
\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}
ConTeXt
ConTeXt provides the same functionality, but the names are different. The following table shows the correspondences:
Numbered | Unnumbered |
---|---|
<cmd>part}} | |
<cmd>chapter}} | <cmd>title}} |
<cmd>section}} | <cmd>subject}} |
<cmd>subsection}} | <cmd>subsubject}} |
<cmd>subsubsection}} | <cmd>subsubsubject}} |
Thus, the previous example can be written in ConTeXt as the following:
\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}
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.