From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69101 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: Modules inside project structure Date: Mon, 13 Jun 2011 11:50:07 +0200 Message-ID: <13610400819.20110613115007@gmx.de> 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: dough.gmane.org 1307958640 687 80.91.229.12 (13 Jun 2011 09:50:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2011 09:50:40 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 13 11:50:31 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 1QW3mu-0001Jg-0Y for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jun 2011 11:50:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4ED4ACAD9E; Mon, 13 Jun 2011 11:50:27 +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 aKLGWePV8jaw; Mon, 13 Jun 2011 11:50:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A560CAD8D; Mon, 13 Jun 2011 11:50:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4FDA4CAD8D for ; Mon, 13 Jun 2011 11:50:22 +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 XQbqtFLE-Doi for ; Mon, 13 Jun 2011 11:50:11 +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 28C2ACAD8B for ; Mon, 13 Jun 2011 11:50:11 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p5D9oAbo032661 for ; Mon, 13 Jun 2011 11:50:10 +0200 Original-Received: (qmail invoked by alias); 13 Jun 2011 09:50:09 -0000 Original-Received: from p54B4AA88.dip.t-dialin.net (EHLO [192.168.1.3]) [84.180.170.136] by mail.gmx.net (mp008) with SMTP; 13 Jun 2011 11:50:09 +0200 X-Authenticated: #2825193 X-Provags-ID: V01U2FsdGVkX1/uYEAMJB7u5BVTO5fGq+qI2bLGkMX2P1WxIlK+Jj sy3HKIw+q+ZgKq X-Priority: 3 (Normal) X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rETlOa77 - 216a6603c6d2 - 20110613 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:69101 Archived-At: Hello, I'm currently trying to split our ConTeXt project into smaller parts, utilizing the ConTeXt project structure. I thought it might be a good idea to also extract reusable parts into private modules. Now I face the problem, that I can't find an optimal spot to place these modules. Currently I just have them at the root of the project where I also have the environment file that is used. That kinda works, since \usemodule uses resolvers.findctxfile which also traverses parent directories. Unfortunately \registerctxluafile doesn't, so the corresponding lua file isn't loaded (which I currently circumvent with dofile()). I guess it might be cleaner to make use of texmf-project or something similar, however that would require the "user" (who is working with that project) to modify their TeX tree and rebuild their formats. It's also a bit strange, since these modules are exclusive to that one project - a new project would at least require copies of these files anyway. So these modules should preferably lie somewhere beneath the actual project, and not "globally" on the system of the user. What would you suggest to handle such projects that should be separated and independent from the ConTeXt installation of the "users"? Would you use modules at all in that case? -- Best Regards, Andreas ___________________________________________________________________________________ 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 ___________________________________________________________________________________