5.3.12. List of Subtitles
Purpose:
Select the list of subtitles according to the given
constraints and current environmental parameters. The article if not
specified somewhere else, is treated as group of paragraphs. The markup
for a new paragraph is the subtitle. The code between "List ... Article
..." statement and "ForEmptyList" (if used) or "EndList" is repeated
for every article in the list. When the list of article is empty the
code in between "ForEmptyList" and "EndList" is executed once.
Syntax:
List [length <integer_value>] [columns <integer_value>]
Subtitle <list_of_instructions>
[ForEmptyList [<list_of_instructions>]]
EndList [Article]
where
length <integer_value> where <integer_value> specifies list_length forces the list to have at most list_length items. If the list contains more items than list_length items the ones not fitting in can be listed using If NextItems/PreviousItems statements.
columns <integer_value> where <integer_value> specifies columns_number
sets an environment variable. This is incremented as if the items would
be placed in a table cell. The counting starts from one and the
variable is incremented for every new element. When it reaches the
maximum value it is reset to one. This is very useful in building tables of data. For details see If List.
<list_of_instructions>
may contain any statement except: "Language", "Publication", "List
Issue", "Issue", "List Section", "Section", "List Article", "Article".
Inside
the List, the data context is defined by the constraints applied to the
current article for every processed line. The data context is restored
after the list processing. In List Subtitles statement the NextItems
and PreviousItems statements don't work in the expected manner, because
they refer to the list of article, the most inner level for publication
components. In the same template one can use list of articles which are
treated as lists of paragraphs, so a new option was needed and is
called NextSubtitle (and PrevSubtitle respectively).
Constraints:
Inside List Subtitle the following statements are forbidden:
Language
Publication
List Issue
Issue
List Section
Section
List Article
Article
add a note
User Contributed Notes
5.3.12. List of Subtitles
There are no user contributed notes for this page.