I have a small problem with the package currfile and the command \currfileabspath. When compiling the file using (pdf|xe)latex I get the expected result, but if I use lualatex it adds ./ to the absolute path of the file.
I'm using TeXLive 2018 (updated) in Fedora 29, the working directory looks like this:
[pablo@fedora forum] $ pwd
/home/pablo/forum
[pablo@fedora forum] $ ls -lha
total 12K
drwxrwxr-x. 2 pablo pablo 4,0K feb 17 13:11 .
drwx------. 43 pablo pablo 4,0K feb 17 13:10 ..
-rw-rw-r--. 1 pablo pablo 187 feb 17 13:03 test.tex
My MWE (test.tex) is this:
\documentclass{article}
\usepackage[abspath]{currfile}
\setlength{\parindent}{0pt}
\begin{document}
\texttt{\jobname.pdf} created from file \texttt{\currfileabspath}%
\end{document}
I use the following line to compile it:
$ pdflatex -recorder test.tex
with which I obtain:
test.pdf created from file /home/pablo/forum/test.tex
which is correct, but if I change it to:
$ lualatex -recorder test.tex
I get
test.pdf created from file /home/pablo/forum/./test.tex
How can I solve this? regards
./e.g. with a regex from expl3, but imho the best would be a feature request to the author of currfile. – Ulrike Fischer Feb 17 '19 at 17:01. /is an option :) , I'll try something usingl3regex, thanks. – Pablo González L Feb 17 '19 at 17:16