ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \input behaves different
@ 2008-12-24 17:08 Hans van der Meer
  2008-12-24 19:04 ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Hans van der Meer @ 2008-12-24 17:08 UTC (permalink / raw)
  To: NTG ConTeXt

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




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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \input behaves different
  2008-12-24 17:08 \input behaves different Hans van der Meer
@ 2008-12-24 19:04 ` Taco Hoekwater
  2008-12-24 19:17   ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2008-12-24 19:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \input behaves different
  2008-12-24 19:04 ` Taco Hoekwater
@ 2008-12-24 19:17   ` Hans Hagen
  2008-12-25 12:48     ` Hans van der Meer
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2008-12-24 19:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \input behaves different
  2008-12-24 19:17   ` Hans Hagen
@ 2008-12-25 12:48     ` Hans van der Meer
  0 siblings, 0 replies; 4+ messages in thread
From: Hans van der Meer @ 2008-12-25 12:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-25 12:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-24 17:08 \input behaves different Hans van der Meer
2008-12-24 19:04 ` Taco Hoekwater
2008-12-24 19:17   ` Hans Hagen
2008-12-25 12:48     ` Hans van der Meer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).