From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67465 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Include path Date: Sun, 27 Mar 2011 19:41:32 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1743192337==" X-Trace: dough.gmane.org 1301247706 10306 80.91.229.12 (27 Mar 2011 17:41:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 17:41:46 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 27 19:41:42 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 1Q3tyA-0006UE-0Y for gctc-ntg-context-518@m.gmane.org; Sun, 27 Mar 2011 19:41:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9B289CAB68; Sun, 27 Mar 2011 19:41:20 +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 Qfk92chy+fZZ; Sun, 27 Mar 2011 19:41:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C413ECAB5B; Sun, 27 Mar 2011 19:41:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E515CAB5B for ; Sun, 27 Mar 2011 19:41:15 +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 dTp3Eh2MP7rU for ; Sun, 27 Mar 2011 19:41:13 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 6C295CAB12 for ; Sun, 27 Mar 2011 19:41:13 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2RHfWdv032238 for ; Sun, 27 Mar 2011 19:41:32 +0200 Original-Received: by fxm18 with SMTP id 18so2814552fxm.14 for ; Sun, 27 Mar 2011 10:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=nDG5yqnlLSXwnxzanCKghjpbwkkU5Wy9+g3qeApvY5Q=; b=Heh5slioGjsB6UGQXBXDvfoO9nBahshqOeZmO8J7Q8YAUaURqMfzVDDZIENej7dtD6 OSl2PY9QUTm8WmUO3ir1LcbJaCby14SrjcYCv6kBabjUYXiUYTzvAPxuFgi9VjEcc5GZ uPp+JH49QAMXf5Ldm6KMzvvpfclgnBRooOkAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=N5+X8Th8qMMn9busau5JdSmjfO45Z2kmCeYeOnFXqILNRdbTGMs/fttgsXTsj4ogNZ /RU1HeVyzXzmIZefJCnnfFDt2ndk+T0j8FHqzbwbjXQev7BlV/60OY8GPE9+B6tz1VJw 01cOw0PpZEUtihDBlgl3dbDms3W5rab/82VWc= Original-Received: by 10.223.127.210 with SMTP id h18mr3427319fas.79.1301247692230; Sun, 27 Mar 2011 10:41:32 -0700 (PDT) Original-Received: by 10.223.103.141 with HTTP; Sun, 27 Mar 2011 10:41:32 -0700 (PDT) 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: 06EohFwnv - 8c1b95909ae6 - 20110327 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:67465 Archived-At: --===============1743192337== Content-Type: multipart/alternative; boundary=00235453097075d288049f7a56ce --00235453097075d288049f7a56ce Content-Type: text/plain; charset=ISO-8859-1 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} -- Cecil Westerhof --00235453097075d288049f7a56ce Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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}

--
Cecil Westerhof
--00235453097075d288049f7a56ce-- --===============1743192337== 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 ___________________________________________________________________________________ --===============1743192337==--