From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44891 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: context minimals "path and directory structure" question Date: Mon, 20 Oct 2008 09:18:23 -0400 (EDT) Message-ID: References: <1224490412.5955.21.camel@lundby> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1216722139-1224508704=:1178" X-Trace: ger.gmane.org 1224528252 10769 80.91.229.12 (20 Oct 2008 18:44:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 18:44:12 +0000 (UTC) To: janerik.hagglof@bredband.net, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 20 20:45:10 2008 connect(): Connection refused 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 1Kruh1-00040M-M2 for gctc-ntg-context-518@m.gmane.org; Mon, 20 Oct 2008 15:21:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EE87E1FC36; Mon, 20 Oct 2008 15:19:57 +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 29313-01-3; Mon, 20 Oct 2008 15:19:05 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9931E1FBFB; Mon, 20 Oct 2008 15:19:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D1E671FBF1 for ; Mon, 20 Oct 2008 15:19:04 +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 23858-02-15 for ; Mon, 20 Oct 2008 15:18:29 +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 A3DB51FC00 for ; Mon, 20 Oct 2008 15:18:28 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-71-234-195-113.hsd1.ct.comcast.net [71.234.195.113]) BY hellskitchen.mr.itd.umich.edu ID 48FC8520.88CBA.2377 ; 20 Oct 2008 09:18:24 -0400 In-Reply-To: <1224490412.5955.21.camel@lundby> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:44891 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1216722139-1224508704=:1178 Content-Type: TEXT/PLAIN; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 20 Oct 2008, Jan-Erik H=E4ggl=F6f wrote: > Where in this "structure" do I place "settings.tex" so it can be found > by context from anywhere in my document-structure? For files which are specific to one or two projects, I usually place them= =20 in the directory: main-dir/ | +---- settings.tex | +---- project-1/ | | | +--- component-1-1.tex | +---- project-2/ and then in component-1-1.tex, put \environment settings There is no need to tell the relative path to context. When context cannot= =20 find a file in the current dir, it looks up two (or three?) levels to find= =20 the file. As Mojca said, this has the added advantage of making the structure=20 self-sufficient. You can just copy the main-dir on a different computer=20 and everything works. For files that are used in many different projects, I usually make it a=20 module (if you are not using any advanced features, like localenvironments= =20 or setupmodules, modules and environments are the same) I have created a directory texmf-local/tex/context/aditya where I put all= =20 my files (and sync them to a svn server so that I can use them on=20 different computers). > I suppose I should do something like "context --make" after placing the > file. If I do the usual upgrade what happens then? You make need to run luatools --generate (or texhash if using mkii) if=20 place the files in texmf-local. To prevent any accidents with upgrades,=20 create a directory in texmf-local/tex/context that is unique. You can also= =20 create the directory in $TEXMFHOME/tex/context (which is usually=20 $HOME/tex/context in *nix systems, I do not know about win/mac). Normally= =20 upgrades do not touch anything in $TEXMFHOME. Aditya --8323329-1216722139-1224508704=:1178 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323329-1216722139-1224508704=:1178--