Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/latex/contrib/currfile

LaTeX package 'currfile'
Copyright (c) 2010-2011 by Martin Scharrer <>
Code repository:

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.


Name Size Date Notes
README 382 2013-02-01 11:20
currfile.dtx 45050 2013-02-01 11:20
currfile.ins 294 2013-02-01 11:20
currfile.pdf 166674 2013-02-01 11:20

Down­load the con­tents of this pack­age in one zip archive (173.6k).

cur­rfile – Pro­vide file name and path of in­put files

The pack­age pro­vides macros hold­ing file name in­for­ma­tion (di­rec­tory, base name, ex­ten­sion, full name and full path) for files read by LaTeX \in­put and \in­clude macros; it uses the file hooks pro­vided by the au­thor’s file­hook. In par­tic­u­lar, it re­stores the par­ent file name af­ter the trail­ing \clearpage of an \in­cluded file; as a re­sult, the macros may be use­fully em­ployed in the page header and footer of the last printed page of such a file.

The depth of in­clu­sion is made avail­able, to­gether with the “par­ent” (in­clud­ing file) and “par­ents” (all in­clud­ing files to the root of the tree).

The pack­age su­per­sedes FiNK.

Pack­age De­tailscur­rfile
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010 Martin Schar­rer
Main­tainerMartin Schar­rer
Con­tained inTeXlive as cur­rfile
MikTeX as cur­rfile
Topics doc­u­ment de­vel­op­ment tools
Guest Book Sitemap Contact