From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45203 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: typefile Date: Thu, 30 Oct 2008 21:05:48 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1783960140==" X-Trace: ger.gmane.org 1225397244 21834 80.91.229.12 (30 Oct 2008 20:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 20:07:24 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 30 21:08:26 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Kvdof-0006XL-P4 for gctc-ntg-context-518@m.gmane.org; Thu, 30 Oct 2008 21:08:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 313C51FC7A; Thu, 30 Oct 2008 21:07:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22572-04-2; Thu, 30 Oct 2008 21:06:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4C9C21FC74; Thu, 30 Oct 2008 21:06:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 03F001FC74 for ; Thu, 30 Oct 2008 21:06:27 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22572-04 for ; Thu, 30 Oct 2008 21:05:49 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by ronja.ntg.nl (Postfix) with ESMTP id 2A65B1FC77 for ; Thu, 30 Oct 2008 21:05:48 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id l26so639867fgb.8 for ; Thu, 30 Oct 2008 13:05:48 -0700 (PDT) Original-Received: by 10.187.186.16 with SMTP id n16mr1137698fap.20.1225397148682; Thu, 30 Oct 2008 13:05:48 -0700 (PDT) Original-Received: by 10.187.211.5 with HTTP; Thu, 30 Oct 2008 13:05:48 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45203 Archived-At: --===============1783960140== Content-Type: multipart/alternative; boundary="----=_Part_27809_23695720.1225397148673" ------=_Part_27809_23695720.1225397148673 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Oct 30, 2008 at 8:23 PM, Aditya Mahajan wrote: > On Thu, 30 Oct 2008, luigi scarso wrote: > > > On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan > wrote: > > > >> Hi, > >> > >> Something is wrong with \typefile in latest context in MKIV. > >> > >> \starttext > >> \typefile{somefile} > >> \stoptext > >> > >> (the file 'somefile' should exist) > >> > >> gives > >> > >> ! Undefined control sequence. > >> \filepath > >> > >> \pathplusfile #1#2->#1 > >> \f!pathseparator #2 > >> \mktypefileverbatim ...rs.typefile("\readfilename > >> ")} > >> \dosometyping ...rt }{\typingparameter \c!stop }}} > >> \stopverbatimcolor > >> \stoppa... > >> \dotypefile ...else \dodotypefile [\v!file ][]{#3} > >> \fi \fi > >> l.3 \typefile{somefile} > >> > >> > >> Also, in MKII, when the file does not exist, you get a warning message > in > >> the pdf output. In MKIV, there is no warning. Missing files are silently > >> ignored. > >> > >> Aditya > >> > > it works here,with minimals-beta > > > > Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC > 2008 > > i686 GNU/Linux > > This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown > > ConTeXt MtxRun | current version: 2008.10.30 08:50 > > > > \starttext > > \typefile{test-aditya-001.tex} > > \stoptext > > Ah, this also works here. The error only shows if the file does not have > an extension. > Confirmed \starttext \typefile{test-aditya-TEST} \stoptext where test-aditya-TEST is TEST fails -- luigi ------=_Part_27809_23695720.1225397148673 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Thu, Oct 30, 2008 at 8:23 PM, Aditya Mahajan <adityam@umich.edu> wrote:
On Thu, 30 Oct 2008, luigi scarso wrote:

> On Thu, Oct 30, 2008 at 8:09 PM, Aditya Mahajan <adityam@umich.edu> wrote:
>
>> Hi,
>>
>> Something is wrong with \typefile in latest context in MKIV.
>>
>> \starttext
>> \typefile{somefile}
>> \stoptext
>>
>> (the file 'somefile' should exist)
>>
>> gives
>>
>> ! Undefined control sequence.
>> <argument> \filepath
>>
>> \pathplusfile #1#2->#1
>>                       \f!pathseparator #2
>> \mktypefileverbatim ...rs.typefile("\readfilename
>>                                                   ")}
>> \dosometyping ...rt }{\typingparameter \c!stop }}}
>>                                                   \stopverbatimcolor
>> \stoppa...
>> \dotypefile ...else \dodotypefile [\v!file ][]{#3}
>>                                                   \fi \fi
>> l.3 \typefile{somefile}
>>
>>
>> Also, in MKII, when the file does not exist, you get a warning message in
>> the pdf output. In MKIV, there is no warning. Missing files are silently
>> ignored.
>>
>> Aditya
>>
> it works here,with  minimals-beta
>
> Linux luigicasa-laptop 2.6.24-21-generic #1 SMP Tue Oct 21 23:43:45 UTC 2008
> i686 GNU/Linux
> This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown
> ConTeXt MtxRun | current version: 2008.10.30 08:50
>
> \starttext
> \typefile{test-aditya-001.tex}
> \stoptext

Ah, this also works here. The error only shows if the file does not have
an extension.

Confirmed

\starttext
\typefile{test-aditya-TEST}
\stoptext

where test-aditya-TEST is
TEST

fails
--
luigi

------=_Part_27809_23695720.1225397148673-- --===============1783960140== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1783960140==--