From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67474 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Include path Date: Sun, 27 Mar 2011 22:42:37 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0956704683==" X-Trace: dough.gmane.org 1301258583 1505 80.91.229.12 (27 Mar 2011 20:43:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 20:43:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 27 22:42:58 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 1Q3wnY-0002MF-NP for gctc-ntg-context-518@m.gmane.org; Sun, 27 Mar 2011 22:42:56 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04084CAB66; Sun, 27 Mar 2011 22:42:36 +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 hWX7RqlLmvta; Sun, 27 Mar 2011 22:42:32 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 19796CAB34; Sun, 27 Mar 2011 22:42:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5B85CAB34 for ; Sun, 27 Mar 2011 22:42:30 +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 nD3i7h0eVff0 for ; Sun, 27 Mar 2011 22:42:19 +0200 (CEST) Original-Received: from filter4-nij.mf.surf.net (filter4-nij.mf.surf.net [195.169.124.155]) by balder.ntg.nl (Postfix) with ESMTP id 6E3FDCAB12 for ; Sun, 27 Mar 2011 22:42:19 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2RKgbw5022950 for ; Sun, 27 Mar 2011 22:42:38 +0200 Original-Received: by fxm18 with SMTP id 18so2887685fxm.14 for ; Sun, 27 Mar 2011 13:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=ntXaiW+uabyoD9SpNOafeCTkUgrRfY9PJVQTZcjJUhI=; b=STEw0vpV8iBeFdwDrXbqnvrsS7VieYa9X2qo+SMh9qKVVe0n+3bsVSbjGXMpCvdJqn +zrdBZSBKqbLiWQDspgsOQ3DOEl4pm6wrxjyRCIIF8hU5TWglfrFbpQ13e2f8J7cm9kj PnqhQpyIxesIvLy3hE8V262Oh0eQ+qG5V5b0E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Hy9Y7knix+THJ762RyLPd8PEweJUD75k5lxBj3NpcSurD0k7dXl3H1WdbJidCzS/7Y n6H7mIjJzsOcZRGXwb1EWygk1ljVBKU2tSGEYS2BNPfXHLuxx8jaLZWutZJ1H+O99omu Kg4BGkhZfrQF8wc/ROXroaQJl02IH85FVjlx8= Original-Received: by 10.223.155.132 with SMTP id s4mr693965faw.136.1301258557640; Sun, 27 Mar 2011 13:42:37 -0700 (PDT) Original-Received: by 10.223.103.141 with HTTP; Sun, 27 Mar 2011 13:42:37 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.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: 04EokGB93 - c031ebedfe50 - 20110327 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.155 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:67474 Archived-At: --===============0956704683== Content-Type: multipart/alternative; boundary=00235429c0b016d1ed049f7cde87 --00235429c0b016d1ed049f7cde87 Content-Type: text/plain; charset=ISO-8859-1 2011/3/27 Cecil Westerhof > I defined some things I will use often. At the moment I do something like: > \input /home/cecil/Documenten/context/include/standard-init.inc > > But I would prefer to do something like: > \input standard-init.inc > > Is shorter and when the path changes there is nothing to update. > How should I implement this? > > Also is it possible to \input a file relative to the current document? > > For example in my standard-init.inc I have: > \ctxloadluafile{/home/cecil/Documenten/context/include/lua/getdate} > but I would prefer something like: > \ctxloadluafile{lua/getdate} > For the moment I defined a shell variable. I just have to call context like this: context --path=${TEX_INC} ebookTimeManagement Does not work for lua files, but they will only be loaded from included files -I think-, so that is less of a problem. -- Cecil Westerhof --00235429c0b016d1ed049f7cde87 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/3/27 Cecil Westerhof <= cldwesterhof@gmail.com>
I defined some things I will use often. At the moment I do something like:<= br>=A0=A0=A0 \input /home/cecil/Documenten/context/include/standard-init.in= c

But I would prefer to do something like:
=A0=A0=A0 \input stand= ard-init.inc

Is shorter and when the path changes there is nothing to update.
How= should I implement this?

Also is it possible to \input a file relat= ive to the current document?

For example in my standard-init.inc I h= ave:
=A0=A0=A0 \ctxloadluafile{/home/cecil/Documenten/context/include/lua/getdat= e}
but I would prefer something like:
=A0=A0=A0 \ctxloa= dluafile{lua/getdate}

For the moment I defined a s= hell variable. I just have to call context like this:
=A0 =A0 context --path=3D${TEX_INC} ebookTimeManagement

Does not wor= k for lua files, but they will only be loaded from included files -I think-= , so that is less of a problem.

--
Cecil Westerhof<= br> --00235429c0b016d1ed049f7cde87-- --===============0956704683== 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 ___________________________________________________________________________________ --===============0956704683==--