You can use the predefined macro variables listed in Table 27-6 to refer to file names and titles of split and extract files. You can use these variables anywhere in a macro, including within JavaScript sections. They are valid in all parts of a file, including within the base part from which the other parts are split or extracted.
$$_basefile |
||
$$_currbase |
Base name only of the current split part, without extension. |
|
$$_currfile |
||
$$_currfilepath |
||
$$_extrgraphid |
Internal file name of first graphic referenced in an extract |
|
$$_extrfile |
||
$$_extrgraph |
File name of first graphic in an extract, as modified by any [Graphics]ExtrGraphSuffix; use for thumbnails (see §27.8.3 Replacing extracts with links in the parent file) |
|
$$_extrgraphid |
||
$$_nextfile |
||
$$_prevfile |
||
$$_currtitle |
Current file title, unaffected by extracts, so it can be used in an extract to get the parent file title. |
|
$$_basetitle |
||
$$_prevtitle |
||
$$_nexttitle |
||
$$_extrtitle |
Current extracted-part title; used in a replacement macro for the extract, to reference the extract title.; see §27.8.3 Replacing extracts with links in the parent file. |
|
$$_firstfile |
1 if this is the first split part, otherwise 0; intended for JavaScript use. |
|
$$_lastfile |
1 if this is the last split part; otherwise 0; intended for JavaScript use. |