Difference between revisions of "Command/defineenumeration"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
m (cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=defineenumeration
 
|name=defineenumeration

Revision as of 18:24, 13 April 2010

\defineenumeration

Syntax

\defineenumeration[...,...,...][...][...,...=...,...]
[...,...,...] name
[...] name
[...,...=...,...] see \setupenumerations


Description

With \defineenumeration you can number text elements like remarks or questions. If you want to make numbered remarks in your document you use:


setup

\defineenumeration
[remark]
[location=top,
text=Remark,
inbetween=\blank,
after=\blank]

You can also vary the layout of Remark and Subremark in the example above by:

\setupenumeration[remark][headstyle=bold]
\setupenumeration[subremark][headstyle=slanted]

Now the new commands \remark, \subremark, \resetremark and \nextremark are available. If the remark contains more than one paragraph you will have to use the command pair \startremark ... \stopremark that becomes available after defining Remark with;

\defineenumeration[remark]

multiple paragraph

So the example above would look like this:

\startremark
In the early medieval times Hasselt was a place of pilgrimage. The
{\em Heilige Stede} (Holy Place) was torn down during the
Reformation.
After 300 years in 1930 the {\em Heilige Stede} was reopened.
Nowadays the {\em Heilige Stede} is closed again but once a year an
open air service is held on the same spot.
\stopremark

input

\remark In the early medieval times Hasselt was a place of
pilgrimage. The {\em Heilige Stede} (Holy Place) was torn down during
the Reformation. In 1930, after 300 years the {\em Heilige Stede} was
reopened.
\subremark Nowadays the {\em Heilige Stede} is closed again but once
a year an open air service is held on the same spot.

output

<b>Remark 1</b>
In the early medieval times Hasselt was a place of pilgrimage. The Heilige Stede (Holy
Place) was torn down during the Reformation. In 1930, after 300 years the Heilige Stede
was reopened.
<b>Remark 1.1</b>
Nowadays the Heilige Stede is closed again but once a year an open air service is held on
the same spot.


Example

See also