From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45202 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: typefile Date: Thu, 30 Oct 2008 15:23:30 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225394731 12430 80.91.229.12 (30 Oct 2008 19:25:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 19:25:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 30 20:26:32 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 1KvdA2-0008CL-3E for gctc-ntg-context-518@m.gmane.org; Thu, 30 Oct 2008 20:26:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E1F571FCA1; Thu, 30 Oct 2008 20:25: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 18997-02-5; Thu, 30 Oct 2008 20:24:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 54F261FC87; Thu, 30 Oct 2008 20:24:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D9F71FC87 for ; Thu, 30 Oct 2008 20:24:10 +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 18997-02-4 for ; Thu, 30 Oct 2008 20:23:34 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id E31791FB95 for ; Thu, 30 Oct 2008 20:23:33 +0100 (CET) Original-Received: FROM dhcp128036151129.central.yale.edu (dhcp128036151129.central.yale.edu [128.36.151.129]) BY tombraider.mr.itd.umich.edu ID 490A09B3.7E93A.8481 ; 30 Oct 2008 15:23:31 -0400 In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:45202 Archived-At: 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. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________