Runtime variables

The following directives embed the content of a run-time variable within custom content. Runtime variable content is assigned during the page assembly process — it cannot be assigned or referenced by another user variable. One way to include the value of a runtime object is to positioning the insertion point in ether the Pre content or Post content box, select the appropriate command from the drop-down list at the bottom of the Custom tab and pressing Insert.

The <folio/> command

This command returns an identifier for the current page when called from the context of a Full looseleaf style sheet, otherwise it returns the page sequence number. See “The <folio/> command” .

The <link-folio/> command

This command returns a ‘next page is’ link folio that identifies the first page of the next leaf when called from the context of a Full looseleaf style sheet. See “The <link-folio/> command”.

The <date/> command

Inserts the current date into the input stream. The command format is:

<date type="TYPE" format="FORMAT" /> 

where

If the date TYPE is... then the output FORMAT is..
short Pre-defined, and of the form 07/16/03 (this is the default date format)
medium Pre-defined, and of the form 16 July 2003
long Pre-defined, and of the form Wednesday 16 July 2003, (02:04PM)
user User defined (see table below)

The format attribute declares the format string for a date of type user. The format string consists of zero or more formatting codes and ASCII printable characters. All ordinary characters are copied unchanged to the input stream. References to undefined format codes will generate a non-fatal typesetting warning.

Each format code is replaced by appropriate characters as described by the following table:

Code Meaning
%a abbreviated weekday name
%A full weekday name
%b abbreviated month name
%B full month name
%c date and time representation appropriate for locale
%d day of month as a decimal number (01–31)
%H hour (00–23)
%I hour (01–12)
%j day number of year (001–366)
%m month number (01–12)
%M minute (00–59)
%p current locale's AM or PM indicator for 12 hour clock
%S seconds (00–59)
%U week number of year (00–53), Sunday is the first day of week 1
%w weekday number (0–6), Sunday = 0
%W week number of year (00–53), Monday is the first day of week 1
%x date representation for current locale
%X time representation for current locale
%y year without century (00–99)
%Y year with century (for example, 2009)
%z, %Z either the time-zone name or time zone abbreviation, depending on registry settings; no characters if time zone is unknown
%% percent sign

The <topleaf-version/> command

Inserts the TopLeaf version number into the input stream.

The <telltale/> command

Emits a data telltale (can only be used within a head/footer). See “Data telltales”.