From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30629 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: texexec from parent directory Date: Sat, 2 Sep 2006 03:24:51 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157181922 19746 80.91.229.2 (2 Sep 2006 07:25:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Sep 2006 07:25:22 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 02 09:25:20 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GJPsS-0004xq-0N for gctc-ntg-context-518@m.gmane.org; Sat, 02 Sep 2006 09:25:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 385481FE79; Sat, 2 Sep 2006 09:25:12 +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 31991-03; Sat, 2 Sep 2006 09:25:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 372DD1FDF8; Sat, 2 Sep 2006 09:25:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 12C931FDF8 for ; Sat, 2 Sep 2006 09:25:00 +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 00335-02 for ; Sat, 2 Sep 2006 09:24:57 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 715431FDEC for ; Sat, 2 Sep 2006 09:24:56 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 44F931C6.7B073.10895 ; 2 Sep 2006 03:24:55 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30629 Archived-At: On Fri, 1 Sep 2006, Aditya Mahajan wrote: > Hi, > > I have the following project structure > > base/ > | > +--project.tex > | > +--product.tex > | > +--environment.tex > + > subdir/ > | > +---component.tex > > > If I in subdir and texexec component it compiles fine. If I am in base > and texexec subdir/component it works fine. However, if I am in the > parent directory of base and > > texexec base/subdir/component > > it does not work as the environment file is not found. It seems that > the search for files is taking place relative to the directory from > where texexec is invoked, rather than relative to the directory where > the file resides. Is there some way I can make the component file > compile from the parent directory of base? Looking into tex.rb, shouldn't --autopath take care of this? (It does not). I also tried texexec --environments=environment.tex base/subdir/component.tex and I get ! You can't use `\relax' after \the. \@sl@\currentcomponentpath \popmacro ...name \@sl@ \@@pushedmacro \endcsname \@@pushedmacro \endcsname ... \doprevlevel ->\popmacro \currentcomponentpath \popmacro \currentcomponent \... l.129 \stopcomponent I'm forgetting what you said and using zero instead. ! You can't use `\relax' after \advance. \@sl@\currentcomponentpath \popmacro ...name \@sl@ \@@pushedmacro \endcsname \minusone \doprevlevel ->\popmacro \currentcomponentpath \popmacro \currentcomponent \... l.129 \stopcomponent I'm forgetting what you said and not changing anything. ! Missing number, treated as zero. \xdef \popmacro #1->\xdef \@@pushedmacro {\string #1}\@EA \let \@EA #1\csname \the... \doprevlevel ...tpath \popmacro \currentcomponent \setsystemmode \currentcom... l.129 \stopcomponent A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) etc.... Am I missing some texexec switch? Aditya