Otared Kavian schrieb am 01.12.2020 um 18:10:
Thanks Hraban, this might be also useful and I'll keep it somewhere on my mind, but for the project I was asking my question \jobname is enough.
Best regards: Otared
On 1 Dec 2020, at 17:33, Henning Hraban Ramm
wrote: Am 01.12.2020 um 16:20 schrieb Otared Kavian
: Thanks Tomás! Indeed \jobname does the job :-) In case you need the current component file in a project environment: \currentcomponent
In some case \inputfilename is the better choice, e.g. when you process xml files with a environment file for the style and processing settings. context --environment=myxmlstyle myfile.xml The following example shows the output of all commands: \starttext \starttabulate [|T|T|] \NC \type{\jobname} \NC \jobname \NC\NR \NC \type{\jobfilename} \NC \jobfilename \NC\NR \NC \type{\jobfilesuffix} \NC \jobfilesuffix \NC\NR \NC \type{\inputfilename} \NC \inputfilename \NC\NR \NC \type{\inputfilebarename} \NC \inputfilebarename \NC\NR \NC \type{\inputfilesuffix} \NC \inputfilesuffix \NC\NR \NC \type{\outputfilename} \NC \outputfilename \NC\NR \NC \type{\operatingsystem} \NC \operatingsystem \NC\NR \stoptabulate \stoptext Wolfgang