Enumerations
Last updated
Last updated
Enumerations (French: énumération / Dutch: opsomming / German: Aufzähung) are used to create lists of items. Depending on the applicable and the content of each item, those items will then be formatted either as an “inline” list of items, or as a bullet-list, as shown in the next example:
You may wonder why you would want to use the special enumeration code, instead of manually typing in the items. The benefits of using the special codes include:
You will never have to worry again about numbering: Clause9 will automatically ensure that the right numbers are inserted, sequentially, without any gaps or duplicates. If a certain item is subjected to a condition that happens not to be fulfilled, then that item will not be shown, and all numbers following it will be adapted accordingly.
The basic structure of an enumeration is as follows:
{ AND | item1 | item2 | item3 }
Right after the opening accolade you have to choose the type of enumeration — AND, OR, AND/OR or LIST. This will respectively result in a list that uses suffix “and”, suffix “or”, suffix “and/or”, or no suffix at all after the item(s).
You can also choose AND-SKIPFINAL, OR-SKIPFINAL, AND/OR-SKIPFINAL or LIST-SKIPFINAL as the enumeration type. If the enumeration happens to get outputted as a bullet-list, then the final item will not get a suffix. The example above (if it would happen to get printed as a bullet-list) would then look as follows:
{ AND! | item1 | item2 | item3 }
{ AND-SKIPFINAL! | item1 | item2 | item3 }
Each item should be separated by the pipe symbol ( | ).
Right after the pipe symbol, you can optionally insert a number. If the enumeration then happens to get printed as an inline list, each item of the enumeration will be preceded by a sequential number. For example:
{ OR | 1. alpha | 2. beta | 3. gamma }
as an inline list, this will result in the following output (assuming that romanettes are chosen in the styling settings for enumerations):
(i) alpha, (ii) beta; and (iii) gamma
If you subject the content of an item to a condition, then the item may get skipped, depending on whether the condition is fulfilled. Clause9 will automatically ensure that the right numbering is used. For example:
{AND | 1. {#employee^gender = "male": alpha } | 2. beta | 3. gamma }
If #employee^gender happens to be false, then the enumeration would be shown as follows (assuming that the styling settings allow for an inline list):
(i) alpha; (ii) beta; and (iii) beta
If, instead, #employee^gender happens to be true, then the enumeration would get printed as follows:
(i) beta; and (ii) beta
Enumerations can also be created using one of the following special function calls:
Both special functions have some variations (see @bullets-and,
@enumerate-numbered
, etc.)— see the detailed explanations for both functions.
(i) key card; (ii) confidential documents; (iii) car; and (iv) car keys.
The formatting will be automatically determined, through a combination of the length of each item and the applicable . Without having to change legal content, you will be able to accommodate both users who want a traditional list of romanette items — (i) … (ii) … (iii) … — and users who want a more modern, bullet-style list.
Suffixes are automatically inserted: depending on the chosen and the type of list, a semicolon, full stop (.), &, “and”, “or”, or “and/or” will be inserted.
Whether this suffix is actually repeated after each item, or instead only after the penultimate item, depends on the .
In principle, whether an enumeration is printed inline or as bullets, depends on the applicable . However, you can force an enumeration to always be printed as bullets — so irrespective of the layout-settings — by adding an exclamation-mark after the list type. For example:
— taking as a parameter a list. Whether the enumeration is printed inline or as bullets, depends on the styling settings and the contents of the items.
— like @enumerations, but always prints the enumeration as a bulleted list, similar to using an exclamation mark after the list type
Using these special functions is most useful when the items you want to print, happen to be stored in a datafield. For example, if #employee^items-to-return is a datafield that contains a list of items to be returned, then would print such list as follows (assuming that inline printing applies per the styling settings):
If your clause should contain actual bullets (i.e. with asterisks), you can still by inserting * AND
or * OR
as the very first bullet. For example: