- I understand that package
currfileprovides information on the currently loaded file like name, path, directory, etc.\currfilenameand\currfileextdeliver as promised,\currfiledirand\currfilepathreturn blanks. Why? - I am told that the
expl3core now provides its own access to current filename and path. Is this as documented inltfilehook, dated 17 June 2021? Since\CurrentFileand\CurrentFilePathcompile with\usepackage{currfile}commented out, I take it my system is up to date. However, keeping with the tradition, both\CurrentFileand\CurrentFilePathreturn blanks.
Anyone interested in providing some clues?
\documentclass{article}
% RN. 24 June 2021
%=======================
\usepackage{comment}
\usepackage[check-declarations,log-functions]{expl3}
\usepackage{currfile}
%-----------------------
\begin{document}
\ExplSyntaxOn
\verb+\c_sys_jobname_str+ = \c_sys_jobname_str
\ExplSyntaxOff
\verb+\currfilename+ = \currfilename
\verb+\currfileext+ = \currfileext
\verb+\currfiledir+ = \currfiledir
\verb+\currfilepath+ = \currfilepath
\verb+\CurrentFilePath+ = \CurrentFilePath
\verb+\CurrentFile+ = \CurrentFile
\end{document}
\CurrentFileis only useful if you use file hooks, then it contains the current file name. – Ulrike Fischer Jun 25 '21 at 07:11\usepackage[abspath]{currfile}and\currfileabsdiras per your previous post, but still get blanks. – Reinhard Neuwirth Jun 25 '21 at 08:58\CurrentFile(which is a LaTeX command, you don't need to loadexpl3) returns empty in the main.texfile because we (as in I) didn't initialise it... Maybe we should... – Phelype Oleinik Jun 25 '21 at 13:13.texfiles, in which I have to manually set the path to the directory where my projects reside. Having the system supply me with that path my templates would be automated. Not a big thing, but relocating projects currently is a pain. – Reinhard Neuwirth Jun 25 '21 at 15:03