CTAN Has a new package: currfile
This package provides macros holding the file name information (dir, base name, extension, full name and full path) for files read by LaTeX's \input and \include macros. It uses the file hooks provided by the 'filehook' package. The package is similar to the 'fink' package, but uses a different implementation (a stack) and takes care to restore the parent file name after the trailing \clearpage of an \include'd file. This allows the usage of the macros on the page header and footer of the last page of such files.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/currfile . More information is at http://tug.ctan.org/pkg/currfile (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
currfile – Provide file name and path of input files
The package provides macros holding file name information (directory, base name, extension, full name and full path) for files read by LaTeX \input and \include macros; it uses the file hooks provided by the author’s filehook. In particular, it restores the parent file name after the trailing \clearpage of an \included file; as a result, the macros may be usefully employed in the page header and footer of the last printed page of such a file.
The depth of inclusion is made available, together with the “parent” (including file) and “parents” (all including files to the root of the tree).
The package supersedes FiNK.
|Copyright||2010–2022 Martin Scharrer|
- 2022-10-11 CTAN update: currfile
- 2020-09-30 CTAN update: currfile
- 2016-04-25 CTAN update: currfile
- 2012-10-30 CTAN update: currfile
- 2012-05-15 CTAN update: currfile
- 2012-05-07 CTAN Update: currfile
- 2011-01-10 CTAN update: currfile
- 2011-01-04 CTAN update: currfile