Increment a sequencer
Use the variable increment syntax to add 1 to a sequencer.
The syntax for incrementing a sequencer is to use two plus-signs ++ immediately after a variable name.
Sequencers are variables that hold a numeric value.
A sequencer may be used any place a variable may be used. Most commonly though, sequencers are used within a composition's section headers (
h1, h2, h3, etc.) and within table
captions and figure
How to define a sequencer
There are two ways that sequencers can be defined.
The simplist way is to use variable assigment syntax, like
The alternate way is to use the
!var pragma, like this:
!var *varname=CHAP *format=ROMAN
!var pragma method automatically initializes the sequencer to the value "0". It also allows you to define how the sequence value will be formatted when it is compiled into the document. The possible formats are: