Command/defineenumeration
From ConTeXt wiki
< Command
\defineenumeration
Syntax
| \defineenumeration[...,...,...][...][...,...=...,...] | |
| [...,...,...] | name |
| [...] | name |
| [...,...=...,...] | see \setupenumerations |
Description
With \defineenumeration you can define the commands for a numbered text element, like remarks or questions. For example, if you want numbered remarks in your document you can define the environment as follows:
\defineenumeration [remark] [location=top, text=Remark, % Display header as "Remark 1" headstyle=bold, % Bold remark headers inbetween={\blank[nowhite]}, % No blank line between remark header and remark after=\blank] % Blank line after the remark.
This creates the new commands \remark, \resetremark, \nextremark, and \startremark ... \stopremark, as well as the same commands for subremark and subsubremark.
Example
\setupindenting[yes,small,first] \defineenumeration [remark] [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in] \starttext \remark An enumeration (\tex{remark}, in this case) takes the paragraph that follows it as its argument. \remark This is the first paragraph after \tex{remark}. It is part of the remark. This is the second paragraph after \tex{remark}. It is not part of the remark. \startremark This is the first paragraph inside \tex{startremark}. It is part of the remark. This is the second paragraph inside \tex{startremark}. It is part of the remark. \stopremark \subsubremark Presto! \stoptext
Gives:
See also
- \defineenumeration for creating new kinds of numbered objects.
- \setupenumerations for setting up looks and behaviour.
- \enumeration for single-paragraph numbered objects.
- \startenumeration for multiple-paragraph numbered objects.
Help from ConTeXt-Mailinglist/Forum
All issues with: