The file main.tex is in the current path (./main.tex). Its content is shown below.
Another file named da.tex is located in the subdirectory ddd(./ddd/da.tex). The content of da.tex is da.tex under ./ddd.
Running "main.tex" typesets da.tex under ./ddd []||.
My question is: why does \getabspath not find the file ./ddd/da.tex?
PS: win7 + MikTex + Xelatex -recorder
main.tex:
\documentclass{article}
\usepackage[abspath]{currfile}
\begin{document}
\input{ddd/da.tex}
\getabspath{ddd/da.tex} [\theabspath]|\theabsdir|.
\end{document}
INPUT ddd\da.tex INPUT .\ddd\da.tex INPUT ddd\da.texThis is part of my.flsfile. Does that mean\getabspathcan not work withmiktex? – lyl Jul 18 '22 at 05:30getabspathfunction? (you do know how to pass a backslash of catcode other to the function, right?) – user202729 Jul 18 '22 at 05:33pass a backslash into getabspath functionHow to do that? – lyl Jul 18 '22 at 05:35\ExplSyntaxOn \exp_args:Nx \getabspath {ddd \cs_to_str:N \\ da.tex}, or use (my) package (needs installation however)\usepackage{precattl}then\precattlExec{\getabspath{\ddd\cO\\da.tex}}– user202729 Jul 18 '22 at 05:37\ExplSyntaxOn \exp_args:Nx \getabspath {ddd \cs_to_str:N \\ da.tex}does work!!\theabspathtypeset.\ddd\da.tex. Is it a bug underWindowssys? And whyabspathjust begin at the current path, not from the root, like /D/.../.../da.tex? – lyl Jul 18 '22 at 05:47\getabspath{./ddd/da.tex}. If you get a period to much, check https://tex.stackexchange.com/a/475356/2388 – Ulrike Fischer Jul 18 '22 at 07:29\getabspath{./ddd/da.tex}, The typeset is the same with\getabspath{ddd/da.tex}. – lyl Jul 18 '22 at 09:47\getabspath{.\string\testinput\string\aa.tex}– Ulrike Fischer Jul 18 '22 at 15:43\getabspathdoes not work well withwindowssystem. The path format has to be changed from linux to windows so thant\getabspathis able to identify the file and give the correct result. – lyl Jul 20 '22 at 00:06