Define a variable

var

The "var" pragma is used to declare and initialize the format of a sequencing variable.

Syntax

The syntax for the var pragma consists of:

  • An exclamation point !
  • The keyword var
  • A varname attribute, to identify the name of the sequence variable
  • A format attribute, to specify how the seequence's value should be emitted
  • An value attribute (optional), to set the initial sequence value
!var *varname=variable *format=format *value=number
var pragma syntax

The possible values for the format attribute are:

digits
two-digits
three-digits
four-digits
roman
ROMAN
alpha
ALPHA
greek
GREEK
numeric-greek
NUMERIC-GREEK
abjad
hebrew

Pragmas can only be used on a line by themselves. They may not be used inside a basic phrase or term phrase. Any leading or trailing whitespace is discarded. Graynotes may be applied by adhering to the standard rules for graynotes.

Examples

Here is what a var pragma looks like within the body of a manuscript.

!var *varname=CHAP *format=ROMAN *value=1
Sample var pragma

syntax > pragmas > varDefine a variable

Q