From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68598 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: how to change current directory ? Date: Mon, 23 May 2011 10:34:07 +0200 Message-ID: References: <0LLN00BP438HLGC0@mailout3.samsung.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============1917103948==" X-Trace: dough.gmane.org 1306139687 31435 80.91.229.12 (23 May 2011 08:34:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 May 2011 08:34:47 +0000 (UTC) To: jinkijinki.jung@partner.samsung.com, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 23 10:34:43 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 1QOQb5-0003f7-05 for gctc-ntg-context-518@m.gmane.org; Mon, 23 May 2011 10:34:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9652ACAD30; Mon, 23 May 2011 10:34:42 +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 6qAkTs2ERMkC; Mon, 23 May 2011 10:34:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BC9BDCAD31; Mon, 23 May 2011 10:34:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E34FCAD31 for ; Mon, 23 May 2011 10:34:24 +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 84IfTG+mTR+W for ; Mon, 23 May 2011 10:34:12 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id AE0E4CAD2E for ; Mon, 23 May 2011 10:34:12 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4N8YBsf008121 for ; Mon, 23 May 2011 10:34:12 +0200 Original-Received: by bwz17 with SMTP id 17so6728492bwz.14 for ; Mon, 23 May 2011 01:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :x-priority:in-reply-to:date:message-id:references:to:x-mailer; bh=fVz/DhtNpQNNczsMBWivQ0qiDL6HW/fq4HUirXuLbPg=; b=B+TYjVr5TlaJKbO7aBp+IqXJcH9kIIFnjqdVlPU8D69zwDXRqnMZrgVJD88tcjlYtd wtAfSsvPS3u3W9g6dkyVXtNSKyxzqpRrt8egton9lP95a6SBaVkfhQEg0eJZ2rdF6Y/l kzcmEvxLtlaG42k5k1ifzi+jI+rfKGXVTJ7Ms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:mime-version:content-type:from:x-priority:in-reply-to:date :message-id:references:to:x-mailer; b=SVj7kcroka/ZHqi62Nt0w+MM2RE/nhMuYq8uPHD700qjvELD0M035Mr+B98RiJYiRL CSR7dLp6h0+F29CrhRphbab/srxBjNUPLatMcbs38JFppgGmV15AybAYu9nuSlLwujwz rsd4b2ZoPwW2Dc5w9fWeed564GrQKmgAllfGE= Original-Received: by 10.204.80.223 with SMTP id u31mr1896993bkk.121.1306139651278; Mon, 23 May 2011 01:34:11 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B29496D.dip.t-dialin.net [91.41.73.109]) by mx.google.com with ESMTPS id l1sm3736010bkl.13.2011.05.23.01.34.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 May 2011 01:34:10 -0700 (PDT) X-Priority: 3 In-Reply-To: <0LLN00BP438HLGC0@mailout3.samsung.com> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEKUybm8 - 058e69879943 - 20110523 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:68598 Archived-At: --===============1917103948== Content-Type: multipart/alternative; boundary=Apple-Mail-15--732550470 --Apple-Mail-15--732550470 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=euc-kr Am 23.05.2011 um 10:21 schrieb =C1=A4=C1=F8=B1=E2: > Greeting context users, > =20 > Thank you for such a good tool. Here is my question regarding = changing of current directory. > =20 > I have quite a number of separate main.tex in different directories. = Each main.tex is calling submain.tex > in the same directory. Compilation of each main.tex in its own = directory is fine. > What I am trying to do is compiling all submain.tex into one pdf file = with minimum change. > To accomplish my objective, I made a master file and put =A1=B0\input = =A1=A6\every\submain.tex=A1=B1. > By now, I assume you know what I am getting at. My objective is not = going to get done. > I have to change all \input commands inside each submain.tex to = reflect the absolute path. > =20 > I guess there should be one way or the other to change = current-directory, so that make my job simple. You can load file in subdirectories when you set the directory with \usepath[] and \usesubpath[], you have to replace =A1=B0\input= =A1=B1 also with =A1=B0\component =A1=B1 (or =A1=B0\usecomponent[]=A1= =B1) otherwise context won=A1=AFt like in the subdirectories. Wolfgang --Apple-Mail-15--732550470 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=euc-kr
Am 23.05.2011 um 10:21 schrieb = =C1=A4=C1=F8=B1=E2:

 

Thank you for such a good tool.  Here is my question = regarding changing of current directory.

 

I have = quite a number of separate main.tex in different directories. Each = main.tex is calling submain.tex

in the same directory.  Compilatio= n of each main.tex in its own directory is fine.

What I am trying to do is compiling all submain.tex into = one pdf file with minimum change.

To accomplish my objective, I made a master file and put = =A1=B0\input  =A1=A6\every\submain.t= ex=A1=B1.

By now, I assume you know what I am = getting at.  My = objective is not going to get done.

I have to change all \input commands inside each = submain.tex to reflect the absolute path.

 

I guess = there should be one way or the other to change current-directory, so = that make my job = simple.


You = can load file in subdirectories when you set the directory = with
\usepath[<name>] and \usesubpath[<name>], you = have to replace =A1=B0\input <file>=A1=B1
also with = =A1=B0\component <file>=A1=B1 (or =A1=B0\usecomponent[<file>]=A1= =B1) otherwise
context won=A1=AFt like in the = subdirectories.

Wolfgang

= --Apple-Mail-15--732550470-- --===============1917103948== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1917103948==--