[NTG-context] foldername instead of jobname

2008-07-11 Thread Steffen Wolfrum
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 ___ If your question is of interest to

Re: [NTG-context] foldername instead of jobname

2008-07-11 Thread Taco Hoekwater
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:

Re: [NTG-context] foldername instead of jobname

2008-07-11 Thread Steffen Wolfrum
Am 11.07.2008 um 22:44 schrieb Taco Hoekwater: In mkiv you can simply do: \edef\foldername{\ctxlua{tex.sprint(lfs.currentdir())}} (assuming the jobname file lives inside the current directory) quite comfortable ;o) st.