From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61938 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Info about creating modules for beginners. Date: Thu, 23 Sep 2010 17:42:27 -0400 (EDT) Message-ID: References: <4C9B81EB.7080404@gyza.cz> <4C9BB968.8020100@wxs.nl> <6FE1A002-DDBA-4AFB-9C2D-0C27A776A212@st.estfiles.de> <1F8CEAD2-29F9-45FC-845F-77550E1849CB@gmail.com> <78A01E48-A117-4758-A125-BB608B184B84@gmail.com> <83CE0043-074C-43E4-9132-D12491378A36@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285278147 10486 80.91.229.12 (23 Sep 2010 21:42:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 21:42:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 23 23:42:24 2010 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 1OytYa-0006XO-73 for gctc-ntg-context-518@m.gmane.org; Thu, 23 Sep 2010 23:42:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C762CA76A; Thu, 23 Sep 2010 23:42:19 +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 z2EKX9wg3py3; Thu, 23 Sep 2010 23:42:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60022CA7B1; Thu, 23 Sep 2010 23:42:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 880EDCA7B1 for ; Thu, 23 Sep 2010 23:42:14 +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 3dc1RTtJGIvW for ; Thu, 23 Sep 2010 23:42:12 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 53C9CCA76A for ; Thu, 23 Sep 2010 23:42:12 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8NLgAjY023284 for ; Thu, 23 Sep 2010 23:42:11 +0200 Original-Received: FROM web047081.wireless.mcgill.ca (web047081.Wireless.McGill.CA [142.157.47.81]) By tombraider.mr.itd.umich.edu ID 4C9BC9B1.64097.31106 ; Authuser adityam; 23 Sep 2010 17:42:09 EDT In-Reply-To: <83CE0043-074C-43E4-9132-D12491378A36@gmail.com> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.12.86; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDalGav9 - c1a6034278d0 - 20100923 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:61938 Archived-At: On Thu, 23 Sep 2010, Wolfgang Schuster wrote: > > Am 23.09.2010 um 23:21 schrieb Aditya Mahajan: > >> Basically, module search does not look in parent directories. > > But you can use a construct like > > \doifmodeelse{component} > {\usemodule[module]} > {\usemodule[../module]} And if you are two directories deep for some components and one dir deep for others. \environment \component etc use a heirarchical search. I think that \usemodule should also use that. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________