From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61932 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:17:59 -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> 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 1285276677 3937 80.91.229.12 (23 Sep 2010 21:17:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2010 21:17:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 23 23:17:55 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 1OytAt-0003CI-FW for gctc-ntg-context-518@m.gmane.org; Thu, 23 Sep 2010 23:17:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B863CA7AB; Thu, 23 Sep 2010 23:17: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 X-ZOjiCTaIH6; Thu, 23 Sep 2010 23:17:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41DDACA794; Thu, 23 Sep 2010 23:17:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 52837CA794 for ; Thu, 23 Sep 2010 23:17:47 +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 lrxvN4qsy3Q5 for ; Thu, 23 Sep 2010 23:17:44 +0200 (CEST) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id EA6B2CA675 for ; Thu, 23 Sep 2010 23:17:44 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o8NLHglP020201 for ; Thu, 23 Sep 2010 23:17:43 +0200 Original-Received: FROM web047081.wireless.mcgill.ca (web047081.Wireless.McGill.CA [142.157.47.81]) By tombraider.mr.itd.umich.edu ID 4C9BC3F5.1438D.11794 ; Authuser adityam; 23 Sep 2010 17:17:41 EDT In-Reply-To: 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: 0BDalhGUG - f1de1643ab7d - 20100923 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:61932 Archived-At: On Thu, 23 Sep 2010, Steffen Wolfrum wrote: > > Am 23.09.2010 um 22:47 schrieb Wolfgang Schuster: > >> >> Am 23.09.2010 um 22:42 schrieb Steffen Wolfrum: >> >>> btw: modules are used to be stored eg. in ~/context/tex/texmf-local/tex/context/third/ folder. >>> >>> is is also possible to keep/find them not in texfm tree but in a projects folder? >>> or do I have to use for this purpose environment files? >> >> You can put modules in your project folder and these are always loaded before the files in the tex tree. > > > Sounds good, but ... > > For example I have in a project's folder a project_test file with these line: > > \environment Style_Test > \usemodule[p-my-test] > > Both files (Style_Test.tex and p-my-test.tex are stored next to project_test.tex in the project's folder). > The environment file is found without problems ... even when I change the file's name between two runs. > > The module is never found. > > What is missing? Module lookups do not search in the parent or grand parent directories. One alternative is to always run files from the top project folder: context dir/dir/file 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 ___________________________________________________________________________________