You can use following GNML variables in tags and styles in a text, on pages, on master pages, and in library objects.
Area1W | Width of the first justification area, linked to text, or 0 if text flows without a frame. |
Area1H | Height of the first justification area, linked to text, or 0 if text flows without a frame. |
EMW | Width of the EM space for the current font and character width. |
ENW | Width of the EN space for the current font and character width. |
ThinW | Width of the thin space for the current font and character width. |
CapH | Height of uppercase letters for the current font and character size. |
XH | Height of lowercase letters for the current font and character size. |
AH | Height of the optical axis for the current font and character size. |
DesD | Depth of descenders for the current font and character size. |
H | Current character height, as set by the >h...< command. |
W | Current character width, as set by the >w...< command. |
M | Current line width. It is not valid for texts justified inside a geometry. |
|
Day | Day of the month (1..31) of today's date. |
Month | Month (1..12) of today's date. |
Year | Year (4 digits) of today's date. |
WeekDay | Day of the week of today's date, (1 = Monday to 7 = Sunday) |
Hour | Current hour (0..23) |
Minute | Current minute (0..59) |
|
TextName | Name of the text. When this variable is used in a local text that is linked to another text (a jump-line) the value is the name of the linked text. |
TextDesc | Description of the text. When this variable is used in a local text that is linked to another text (a jump-line) the value is the description of the linked text, not of the local one. Using TextDesc it is possible to put in the jump lines a string identifying the text that is jumping, without having to key-in this string in different pages and so avoiding errors. |
|
Variables of measure and integer type can be used in typographical expressions. Use the >writei..< tag to write integer variables in text, and the >writes...< tag to write string variables.
>h H"900< | reduces the type size on 900 thousands in respect of current size. |
>w H/2< | set base of characters on half of the current size. |
>w H-1dd< | reduces base of characters for 1dd in respect of current size. |
>w W/2< | set base of characters on half current base. |
>w W'900< | reduces base on 900 in units or on 90%. |
>w W/2< | set base of characters on half current base. |
>ta CapH< | aligns the uppercases upwards with column border. |
>ta CapH+4dd< | shifts down the first line for 4dd. |
>a LD< | moves the current paragraph down for half of current leading. |
>brule 1dd,0,0,DesD< | aligns rule below descenders for any font and size. |
>brule 1dd,0,0,DesD*11/10< | moves the horizontal rule down for 10% depth of descenders. |
>trule 1dd,0,M/2,0< | draws the rule above characters that runs to the half of column. |
>ld LD, LD*5/100,LD*5/100< | creates 5% leading variations for any leading. |
>eld 0,LD/2<>global< | varies the space above of the paragraph of 0 up to 50% of current leading till the end of the text. |
|
Bug fixes
A bug in the WeekDay variable (the values returned were from -1 to 5) was fixed in build 2094 (1.6 and 2.0).
See also
GNML variables - master pages
GNML variables - jumps