From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71442 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: readfile not understood Date: Thu, 29 Sep 2011 21:05:45 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317323160 32336 80.91.229.12 (29 Sep 2011 19:06:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2011 19:06:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 29 21:05:56 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9Lvf-0000qd-4V for gctc-ntg-context-518@m.gmane.org; Thu, 29 Sep 2011 21:05:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4F00CAFE3; Thu, 29 Sep 2011 21:05:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id apJMiiFFhW+N; Thu, 29 Sep 2011 21:05:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6C1A3CAFE4; Thu, 29 Sep 2011 21:05:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 412BDCAFE4 for ; Thu, 29 Sep 2011 21:05:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jU4tyZLx1poK for ; Thu, 29 Sep 2011 21:05:49 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 376F0CAFE3 for ; Thu, 29 Sep 2011 21:05:49 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8TJ5m61003894 for ; Thu, 29 Sep 2011 21:05:48 +0200 Original-Received: by fxh17 with SMTP id 17so2896938fxh.14 for ; Thu, 29 Sep 2011 12:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=7mQkAGvh9WvW95sPUCxCzxg9t8UYjCvltrx0XtXuEDg=; b=m7QqFPjwuQwqbXCKSBrSkoU4BweLY/JqbXDAVV1bV+3NYH4M9Bnl8yzGMZUj7ldBk2 19fmwTRDawYDydQ/eprMNW4BUfggUskXWlXPdje0twP2R7yf1YD9ozfslkdWOPt08fIU +Mp+EHul8kxAnIuil6TajLAu4LAFR7JZJAYH8= Original-Received: by 10.223.40.214 with SMTP id l22mr1818035fae.93.1317323148540; Thu, 29 Sep 2011 12:05:48 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482D67F.dip.t-dialin.net. [84.130.214.127]) by mx.google.com with ESMTPS id x22sm3287711faa.5.2011.09.29.12.05.46 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Sep 2011 12:05:47 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06FCH5MCQ - e9ca93bb39bc - 20110929 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:71442 Archived-At: Am 29.09.2011 um 20:57 schrieb Meer, H. van der: > I do not understand while \readfile behaves differently from \input with regard to TeX-code processing. > I have the following code: > > \readfile{metapost-setup} %(file with metapost inclusions) > \starttext > \startMPpage > .. > \stopMPpage > \stoptext > > Replace the \readfile by: > \input ../../../metapost-setup %(file with metapost inclusions) > works ok. > But with \readfile seems to be skipped silently, that is without any sign of it in the log. The convenience of \readfile should be, if I understand correctly, that it searches upwards to the root of directory tree. Which makes the series of ../'s unnecessary and allows for easily pushing the tex-files further down when their number grows. > Can it be explained? \readfile expects three arguments, replace it with \ReadFile which expects only one. Wolfgang ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________