Hi Otared,

try \jobname.

Best wishes,

Tomáš 


Tue, Dec 01, 2020 ve 02:45:18PM +0100 Otared Kavian napsal(a):
# Hi everyone,
# 
# I have to typeset a few files which get each an input file named in a certain 
way. For instance, a file named « myfile.tex » in which another file named « 
myfile-buffer.tex » is used as an \input file, as in
# 
# % content of myfile.tex
# %%%%%
# \starttext
# This is a test.
# 
# \input myfile-buffer.tex
# \stoptext
# %%%%%
# 
#  When typesetting « myfile.tex » I wonder whether it is possible to get the 
name of the file without its suffix, that is to get « myfile », with a command 
such as
# \getNameOfCurrentFile
# and then be able to replace the above snippet by:
# 
# % desired content of myfile.tex
#  %%%%%
# \starttext
# This is a test.
# 
# \input \getNameOfCurrentFile-buffer.tex
# \stoptext
# %%%%%
# 
# Best regards and thanks for any hint: Otared K.
# 
___________________________________________________________________________________
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : [email protected] / 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
# 
___________________________________________________________________________________

                                         Tomáš Hála
--------------------------------------------------------------------
Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28
--------------------------------------------------------------------
http://akela.mendelu.cz/~thala
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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