![](https://secure.gravatar.com/avatar/e79f226aa442b589932230491affa641.jpg?s=120&d=mm&r=g)
11 Jul
2008
11 Jul
'08
10:20 a.m.
Hi, marking=on often uses \jobname. My file's name is not as important as its respective folder name. Is it possible to read and reuse this folder's name? Thanks, Steffen
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
11 Jul
11 Jul
2:44 p.m.
Steffen Wolfrum wrote:
Hi,
marking=on often uses \jobname.
My file's name is not as important as its respective folder name.
Is it possible to read and reuse this folder's name?
In mkii you would have to do something with \write18, I fear. In mkiv you can simply do: \edef\foldername{\ctxlua{tex.sprint(lfs.currentdir())}} (assuming the jobname file lives inside the current directory) Best wishes, Taco
5849
Age (days ago)
5849
Last active (days ago)
2 comments
2 participants
participants (2)
-
Steffen Wolfrum
-
Taco Hoekwater