MKii and MKiv differ in their behaviour of \input with respect to the .tex suffix. Consider the following program: \starttext reading file1.tex: \input file1\par reading file1a: \input file1a\par \stoptext Processing with mkii reads both files, but mkiv chokes on the second \input: ! I can't find file `file1a'. <to be read again> \par l.3 reading file1a: \input file1a\par This seems a very nasty difference to me, because it will necessitate me to rename a great many files. Is this behaviour intended? Hans van der Meer
Hans van der Meer wrote:
MKii and MKiv differ in their behaviour of \input with respect to the .tex suffix. Consider the following program: \starttext reading file1.tex: \input file1\par reading file1a: \input file1a\par \stoptext Processing with mkii reads both files, but mkiv chokes on the second \input: ! I can't find file `file1a'. <to be read again> \par l.3 reading file1a: \input file1a\par
This seems a very nasty difference to me, because it will necessitate me to rename a great many files. Is this behaviour intended?
I would advise against using filenames without an extension, but nevertheless it would be nice if aux.find_file (I hope I got the function name right) would at least test for the existance of ./<filename> Hans (Hagen), is that OK with you? Best wishes, Taco
Taco Hoekwater wrote:
Hans van der Meer wrote:
MKii and MKiv differ in their behaviour of \input with respect to the .tex suffix. Consider the following program: \starttext reading file1.tex: \input file1\par reading file1a: \input file1a\par \stoptext Processing with mkii reads both files, but mkiv chokes on the second \input: ! I can't find file `file1a'. <to be read again> \par l.3 reading file1a: \input file1a\par
This seems a very nasty difference to me, because it will necessitate me to rename a great many files. Is this behaviour intended?
I would advise against using filenames without an extension, but nevertheless it would be nice if aux.find_file (I hope I got the function name right) would at least test for the existance of
./<filename>
Hans (Hagen), is that OK with you?
it's indeed in that function but i need to check it careful because i don't want to mess up. I guess that i can do it just before here if not done and doscan then -- todo: slow path scanning end Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
I understand from these messages I may look forward to implementation of searching for "thefile.tex" and then for "thefile" in the next update. Appreciate that very much. It is not for compatibility alone, I was asking. I have a great many files that are used in another context then ConTeXt, but are included in a typeset document collection. Giving them a .tex suffix would obfuscate their original character. Hans van der Meer On 24 dec 2008, at 20:17, Hans Hagen wrote:
Taco Hoekwater wrote:
Hans van der Meer wrote:
MKii and MKiv differ in their behaviour of \input with respect to the .tex suffix. Consider the following program: \starttext reading file1.tex: \input file1\par reading file1a: \input file1a\par \stoptext Processing with mkii reads both files, but mkiv chokes on the second \input: ! I can't find file `file1a'. <to be read again> \par l.3 reading file1a: \input file1a\par
This seems a very nasty difference to me, because it will necessitate me to rename a great many files. Is this behaviour intended? I would advise against using filenames without an extension, but nevertheless it would be nice if aux.find_file (I hope I got the function name right) would at least test for the existance of ./<filename> Hans (Hagen), is that OK with you?
it's indeed in that function but i need to check it careful because i don't want to mess up. I guess that i can do it just before here
if not done and doscan then -- todo: slow path scanning end
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Hans van der Meer
-
Taco Hoekwater