Hi Wolfgang,

Thank you for your explanations: I am wondering whether this kind of 
information could go into the wiki, and if yes what would be an appropriate 
title for that page (of course I'll do it).

However the two commands 

\inputfilesuffix
\jobfilesuffix

put inside the file « myfile.tex » do not give the suffix « tex »: shoul dthey 
give « tex » or am I misintrepreting these commands?

Best regards: Otared



> On 1 Dec 2020, at 18:23, Wolfgang Schuster 
> <wolfgang.schuster.li...@gmail.com> wrote:
> 
> 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 <te...@fiee.net> wrote:
>>>> Am 01.12.2020 um 16:20 schrieb Otared Kavian <ota...@gmail.com>:
>>>> 
>>>> 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
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to