➢Important: these tokens are calculated before any page deletion which may occur as the result of zap tokens, conditional tokens, macro tokens or Saras.
The above tokens can be used with zap tokens or conditional tokens to keep or delete some elements depending on the position of the page on which the current token is located.
[pGen+] |
The total number of pages of the current GridTemplate that have been generated so far, including the page on which the token is.
The value of this token on the first page generated for the current template will be 1, regardless of the actual page number within the output file. |
[pGen-] |
The total number of pages of the current GridTemplate that remain to be generated, including the page on which the token is.
The value of this token on the very last page generated for the current template will be 1, regardless of the actual page number within the output file. The value on the second-to-last page will be 2, etc... |
[pSpr+] |
The number of spreads of the current GridTemplate that have been generated so far, including the page on which the token is.
The value of this token on the first spread generated for the current template will be 1, regardless of the actual page number within the output file.
Note that spreads are facing pages. Therefore, if a GridTemplate's first page generated is a right page, then this token will have the value 1 only for the first generated page of the template. |
[pSpr-] |
The number of spreads of the current GridTemplate that remain to be generated, including the page on which the token is.
The value of this token on the very last spread generated for the current template will be 1, regardless of the actual page number within the output file. The value on the second-to-last page will be 2, etc...
Note that spreads are facing pages. Therefore, if a GridTemplate's last page generated is a left page, then this token will have the value 1 only for the last generated page of the template. |
[pSolo] |
Determines if the page, opposite to the page on which the token is located, is from a different template, as can happen if a template's generated pages start on the right or end on the left, or in the case of insertions.
The value of this token will be 0 (zero) if the page opposite to the page of the token is of the same template, and will be 1 (one) if the page opposite to the page of the token is from a different template. |
See also: [pSide] page side, [p#] page number.
Topic 181680, last updated on 24-Jun-2021