REGISTERS - registers defined by TF.

TF automatically maintains several text and number registers. These are listed below.

%
contains the number of the current page.
#
contains the number of the current output line.
(year)
contains the last two digits of the current year, e.g. 82 in 1982.
(mon)
contains the number of the current month, e.g. 1 for January.
(day)
contains the number of the current day of the month, e.g. 25 for Christmas.
(hour)
contains the number of the hour at which processing began. For example, if processing begins at 1:30 p.m., (hour) will contain 13.
(min)
contains the minute in the hour at which processing began. If processing begins at 1:30 p.m., (min) will contain 30.
(sec)
contains the second in the minute at which processing began.
(%amon)
name of the current month, e.g. "June".
(%wday)
name of the current day of the week, e.g. "Thursday".
(%tf)
number of the current version of TF.
(%in)
gives the current indentation value. For example, ".in 5" means that (%in) will have the value 5.
(%po)
gives the current page offset (as set by the ".po" request).
(%ll)
is the current line length.
(%pw)
is the current page width.
(%pl)
is the current page length.
(%ls)
is the current line spacing. For example, (%ls) will equal 2 if you are currently double-spacing.
(%m1), (%m2), (%m3), (%m4)
give the current sizes of the four page margins.

Note that the registers pertaining to the time and date are only set when TF starts up, and thus will not change, regardless of the passage of time during processing.

Copyright © 1996, Thinkage Ltd.