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 : 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 ___________________________________________________________________________________