From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67469 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Include path Date: Sun, 27 Mar 2011 20:39:50 +0200 Message-ID: References: <5912EDC9-915B-4222-ABDB-6B09328F95FD@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0451673189==" X-Trace: dough.gmane.org 1301251236 27871 80.91.229.12 (27 Mar 2011 18:40:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2011 18:40:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 27 20:40:26 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 1Q3usy-000546-Gj for gctc-ntg-context-518@m.gmane.org; Sun, 27 Mar 2011 20:40:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0ACB9CAB66; Sun, 27 Mar 2011 20:40:04 +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 jhiMjtp2LGOR; Sun, 27 Mar 2011 20:39:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 994A8CAB34; Sun, 27 Mar 2011 20:39:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41F94CAB34 for ; Sun, 27 Mar 2011 20:39:50 +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 8Os0BrTTanXP for ; Sun, 27 Mar 2011 20:39:32 +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 2B0EECAB12 for ; Sun, 27 Mar 2011 20:39:32 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2RIdogj028543 for ; Sun, 27 Mar 2011 20:39:51 +0200 Original-Received: by fxm18 with SMTP id 18so2838858fxm.14 for ; Sun, 27 Mar 2011 11:39:50 -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=sqpi1jW1Cn+zRx2sRkrJD/oSL5NbFTV4zdkcvPoYuA0=; b=M/k4DJh3+/YUK5xE3KIv7uFJqHp2466RBUbu6pl9A/xz2MelB1sV/CFd15fQuNmAOE kXp2X1xqJZaqjIc00xzc9NNf3TpoBBxhEImkLZ3Zql3A7ZCpJ70CejRa6KTFjorUZjrL YWxxPkZ/WBa4p4t0nU4ATzaDyJVvu/7eIBtXU= 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=GCMi8dl0qX1JAPKF4jlifI7FRmlGFOMyTltWqR8J6UWWAmFURPxoW/Uqynl1Dd6NoN IR4hIcwUJSpI5s8W7A/trion+Yg/zskana1173boU0PqB7e+wtJ4CSToDIMJssR8Z99B Qhq0wpIB/66RCAJmqx8nA3nH1NqtT9Zi98/HA= Original-Received: by 10.223.13.137 with SMTP id c9mr297204faa.60.1301251190641; Sun, 27 Mar 2011 11:39:50 -0700 (PDT) Original-Received: by 10.223.103.141 with HTTP; Sun, 27 Mar 2011 11:39:50 -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: 0eEoiDP0b - ecb646d7a398 - 20110327 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:67469 Archived-At: --===============0451673189== Content-Type: multipart/alternative; boundary=000e0ce0f37efb53f8049f7b2621 --000e0ce0f37efb53f8049f7b2621 Content-Type: text/plain; charset=ISO-8859-1 2011/3/27 Aditya Mahajan > 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? >>> >> >> Make a module out of the code and put it in texmf-local. >> > > > Or modify TEXINPUTS and LUAINPUTS variables. > Both where not defined in my environment. I now have defined: export TEXINPUTS=.:${TEXROOT}:${HOME}/ConTeXt-inc This takes care of my defined stuff. There is only one problem. I do: \usemodule[fancybreak] \definefancybreak[myblank][indentnext=no] This worked before, but now I get: resolvers > modules > not found: 'fancybreak' ! Undefined control sequence. system > tex > error on line 27 in file /home/cecil/ConTeXt-inc/layout-init.inc: Undefined control sequence ... 17 \setuphead[subsection][before={\myblank[big,small] \testpage[10]},style={\bf}] 18 19 \setuppagenumbering[state=stop] 20 21 \definelayout[pagenumbers][ 22 footer=10mm, 23 ] 24 25 \usemodule[fancybreak] 26 27 >> \definefancybreak[myblank][indentnext=no] What else do I have to do? -- Cecil Westerhof --000e0ce0f37efb53f8049f7b2621 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/3/27 Aditya Mahajan <<= a href=3D"mailto:adityam@umich.edu">adityam@umich.edu>
I defined some things I will use often. At the moment I do something like:<= br> =A0 =A0\input /home/cecil/Documenten/context/include/standard-init.inc

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

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

Make a module out of the code and put it in texmf-local.


Or modify TEXINPUTS and LUAINPUTS variables.

Both = where not defined in my environment. I now have defined:
=A0=A0=A0 expor= t TEXINPUTS=3D.:${TEXROOT}:${HOME}/ConTeXt-inc

This takes care of my= defined stuff.
There is only one problem. I do:
=A0=A0=A0 \usemodule[fancybreak]
=A0= =A0=A0 \definefancybreak[myblank][indentnext=3Dno]

This worked befor= e, but now I get:
resolvers=A0=A0=A0=A0=A0=A0 > modules > not foun= d: 'fancybreak'
! Undefined control sequence.

system=A0=A0=A0=A0=A0=A0=A0=A0=A0 >= tex > error on line 27 in file /home/cecil/ConTeXt-inc/layout-init.inc:= Undefined control sequence ...

17=A0=A0=A0=A0 \setuphead[subsection= ][before=3D{\myblank[big,small] \testpage[10]},style=3D{\bf}]
18=A0=A0=A0=A0
19=A0=A0=A0=A0 \setuppagenumbering[state=3Dstop]
20= =A0=A0=A0=A0
21=A0=A0=A0=A0 \definelayout[pagenumbers][
22=A0=A0=A0= =A0=A0=A0 footer=3D10mm,
23=A0=A0=A0=A0 ]
24=A0=A0=A0=A0
25=A0=A0= =A0=A0 \usemodule[fancybreak]
26=A0=A0=A0=A0
27 >>=A0 \definef= ancybreak[myblank][indentnext=3Dno]

What else do I have to do?

--
Cecil Westerhof --000e0ce0f37efb53f8049f7b2621-- --===============0451673189== 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 ___________________________________________________________________________________ --===============0451673189==--