From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34693 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt on Excursion: translations in the Garden Date: Mon, 14 May 2007 22:46:20 -0400 (EDT) Message-ID: References: <4640B66A.6020901@seznam.cz> <769ba7780705091805g5bd24c10w2ebc21f522ee9037@mail.gmail.com> <20070510015442.GA15527@phare.normalesup.org> <115224fb0705092338m7af44274hc74f6a7cea0e6467@mail.gmail.com> <20070510124242.GA16506@phare.normalesup.org> <115224fb0705100706v319ef1c7x53698af154f2b267@mail.gmail.com> <20070510144429.GA17296@phare.normalesup.org> 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: sea.gmane.org 1179197205 1519 80.91.229.12 (15 May 2007 02:46:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 May 2007 02:46:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 15 04:46:43 2007 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 1Hnn3e-0008Gp-0N for gctc-ntg-context-518@m.gmane.org; Tue, 15 May 2007 04:46:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32ADB1FA3C; Tue, 15 May 2007 04:46:36 +0200 (CEST) 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 18436-05; Tue, 15 May 2007 04:46:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D96901FF57; Tue, 15 May 2007 04:46:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D57901FF57 for ; Tue, 15 May 2007 04:46:24 +0200 (CEST) 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 18904-03-3 for ; Tue, 15 May 2007 04:46:22 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with ESMTP id 0E4F31FF4F for ; Tue, 15 May 2007 04:46:21 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 46491EFB.CD117.32123 ; 14 May 2007 22:46:20 -0400 In-Reply-To: <20070510144429.GA17296@phare.normalesup.org> 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:34693 Archived-At: On Thu, 10 May 2007, Arthur Reutenauer wrote: >> I wasn't able to test my answer because I use myself a different file structure >> for the beginners manual and never encountered this problem. > > I guess the problem is with \doiffileelse in ma-cb-setups.tex: > > # \doiffileelse{t-setup.tex} > # {\usemodule[setup]} % third party t-setup.tex > # {\usemodule[set-11]} > > As it is (without tweaking TEXINPUTS or installing t-setup.tex > manually), t-setup.tex isn't found in the parent directory, so > x-set-11.tex is loaded in its place. Why is it done this way? Isn't t-setup always supposed to be distributed with the sources. Why not simply \environment t-setup If a file is being used for only one project, it should be an environment file. If it will be used in multiple projects, it should be a module. Wolfgang, do you think that t-setup.tex can be added as x-set-13.tex, or maybe even overwrite x-set-11.tex? (I have not read it carefully to understand what are the enhancements that it provides). > How is \doiffileelse supposed to search for files exactly? Try to open the file for reading. If the file can be read, then read the file, else do the else part. The check for file etc is done using TeX's \immediate\openin\scratchread \filename, so there is no searching for parent directories. The \project and \environment macros have to make some effort to read files in parent directories. 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 ___________________________________________________________________________________