From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34698 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt on Excursion: translations in the Garden Date: Tue, 15 May 2007 21:51:41 +0200 Message-ID: <20070515215141.4bd0b1cc.schuster.wolfgang@googlemail.com> 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 1179258736 20839 80.91.229.12 (15 May 2007 19:52:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 May 2007 19:52:16 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 15 21:52:14 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 1Ho345-0000tn-1p for gctc-ntg-context-518@m.gmane.org; Tue, 15 May 2007 21:52:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6453F2003F; Tue, 15 May 2007 21:52:08 +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 10562-01-2; Tue, 15 May 2007 21:51:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF2A71FFED; Tue, 15 May 2007 21:51:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6204D1FFFE for ; Tue, 15 May 2007 21:51:53 +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 09818-01 for ; Tue, 15 May 2007 21:51:49 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by ronja.ntg.nl (Postfix) with ESMTP id 99DD61FFED for ; Tue, 15 May 2007 21:51:49 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id m2so1387393uge for ; Tue, 15 May 2007 12:51:49 -0700 (PDT) Original-Received: by 10.67.90.1 with SMTP id s1mr6175229ugl.1179258709269; Tue, 15 May 2007 12:51:49 -0700 (PDT) Original-Received: from eve ( [194.94.240.124]) by mx.google.com with ESMTP id k30sm15843016ugc.2007.05.15.12.51.47; Tue, 15 May 2007 12:51:48 -0700 (PDT) In-Reply-To: X-Mailer: Sylpheed 2.4.1 (GTK+ 2.10.11; i686-pc-mingw32) 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:34698 Archived-At: On Mon, 14 May 2007 22:46:20 -0400 (EDT) Aditya Mahajan wrote: > 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). > Hi Aditya, the module is a replacement for x-set-11 and and tries to solve a few problem x-set-11 has, like generating a index with all commands used in the current file. It provides also a few like generating a index entry without showing the command in the running text or generating own texts for envronments, like a setup command for "\startFOO ... \stopFOO" (the FOO is not a placeholder, you can realy show FOO in the output from \shortsetup). > > 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 This should be wikified. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________