From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89609 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Loading modules Date: Tue, 23 Dec 2014 14:29:08 +0100 Message-ID: References: <5495F795.8080307@gmx.es> <5496F351.70601@gmx.es> <54970FDE.20808@gmx.es> <46003AF8-02AD-42A2-9194-E9E4563997A3@gmail.com> <5C142400-BB26-4236-BB10-3ED7C4556694@gmail.com> <59BD98FD-E8A3-4F05-997D-9910D686A56F@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/mixed; boundary="===============1675669797==" X-Trace: ger.gmane.org 1419341391 17238 80.91.229.3 (23 Dec 2014 13:29:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Dec 2014 13:29:51 +0000 (UTC) Cc: mailing list for ConTeXt users To: "j. van den hoff" Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 23 14:29:46 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y3PX0-0004tz-Kn for gctc-ntg-context-518@m.gmane.org; Tue, 23 Dec 2014 14:29:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2351A1025A for ; Tue, 23 Dec 2014 14:29:46 +0100 (CET) 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 tUyI4glE50XQ for ; Tue, 23 Dec 2014 14:29:45 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 16A8710268 for ; Tue, 23 Dec 2014 14:29:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AD2C810223 for ; Tue, 23 Dec 2014 14:29:10 +0100 (CET) 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 wuB6ZbTUWVIz for ; Tue, 23 Dec 2014 14:29:09 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 9712010221 for ; Tue, 23 Dec 2014 14:29:09 +0100 (CET) Original-Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sBNDT8D2016789 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 23 Dec 2014 14:29:08 +0100 Original-Received: by mail-wi0-f177.google.com with SMTP id l15so10825209wiw.10 for ; Tue, 23 Dec 2014 05:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=awHPdkTFkRCChJsOIUX/ATuo6/mp3vjh0JdLbvfXt9s=; b=WPm9gYaps67grqg66pIWl5rQlOUXS5Pls8i4rBsxYahK4ypgWikMVheIjbp9ukRJZx iqx2yKH3eK3NtWGgpGlG30TsrXGpHnDNXyBZnlcgdAH2YFs4Uh/a3ULWww7lcCoOYXTQ UH8GBXkfNVp0vakIPWHu6KwZnsvdeIG/2IHQed2kzNN186eTeIua2XHrHDYHf+xyelJs FdX7KhtiApDfJLE4YCeQJqtV9r1JB/OMO0PMC7FNrj53IX8LDGdo51BIl1AlN/2W/OEJ HUODDCORJj/rP3pb5MVmJKYs0L0uXgPUdc0KNVBVHFg+tCb2hah2ycWNiiLCeVTAHdeE Tv9w== X-Received: by 10.180.74.236 with SMTP id x12mr41937043wiv.40.1419341348509; Tue, 23 Dec 2014 05:29:08 -0800 (PST) Original-Received: from keima.localdomain (x2f2aac7.dyn.telefonica.de. [2.242.170.199]) by mx.google.com with ESMTPSA id fx6sm27682142wjc.39.2014.12.23.05.29.07 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Dec 2014 05:29:07 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1993) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Nv1t8Ll - 5fec99dac8b9 - 20141223 (trained as not-spam) Received-SPF: pass (filter1-utr.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::231 as permitted sender) receiver=filter1-utr.mf.surf.net; client-ip=2a00:1450:400c:c05::231; envelope-from=; helo=mail-wi0-x231.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89609 Archived-At: --===============1675669797== Content-Type: multipart/alternative; boundary="Apple-Mail=_CA0CDCA1-7E09-43B9-8AD3-86C2B59B5F36" --Apple-Mail=_CA0CDCA1-7E09-43B9-8AD3-86C2B59B5F36 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 23.12.2014 um 14:15 schrieb j. van den hoff = : >=20 > On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang Schuster = > = wrote: >=20 >>=20 >>> Am 22.12.2014 um 00:12 schrieb j. van den hoff = : >>>=20 >>> OK, I've just installed the standalone version and adjusted my = search path. now the very same document does no longer compile. I get = the error: >>>=20 >>> 8<--------------------------- >>> ! Undefined control sequence >>>=20 >>> \doctitle >>>=20 >>> l.106 \doctitle >>> 8<--------------------------- >>> where `doctitle' is defined in a small bare bones module = (co-existing in the same dir as the doc) for setting up a title page. I = guess I'm hitting some (context-) searchpath issue here that already is = taken care of in the texlive distro? any help'd be appreciated. >>=20 >> I guess you load the file with your definitions with the \usemodule = command. >=20 > correct. >=20 >>=20 >> There has been a change a while ago and context expects now a prefix >> when you load a module (e.g. p-.tex) and when you add now the >> prefix to your file context will be able to load it. Another solution = is to add >>=20 >> \enabledirectives[modules.permitunprefixed] >>=20 >> before the \usemodule command in your document, the command >> above tells context to also look for modules without a prefix as last = resort. >=20 > yes, this one did the trick. thanks a lot. regarding the prefix = handling/recognition, I don't > quite get it (_what_ is considered a prefix, e.g. is there a canonical = prefix separator etc. or where do I define > the prefix?). I'll try to hunt for it on contextgarden. if you do have = a pointer, though, > that'd be nice. http://wiki.contextgarden.net/Modules#Usage = Wolfgang= --Apple-Mail=_CA0CDCA1-7E09-43B9-8AD3-86C2B59B5F36 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 23.12.2014 um 14:15 schrieb j. van den hoff <veedeehjay@googlemail.com>:

On Mon, 22 Dec 2014 22:35:43 +0100, Wolfgang = Schuster <schuster.wolfgang@gmail.com> wrote:


Am 22.12.2014 um 00:12 = schrieb j. van den hoff <veedeehjay@googlemail.com>:

OK, I've just installed the standalone version and adjusted = my search path. now the very same document does no longer compile. I get = the error:

8<---------------------------
! Undefined = control sequence

<recently read> = \doctitle

l.106 =    \doctitle
8<---------------------------
where = `doctitle' is defined in a small bare bones module (co-existing in the = same dir as the doc) for setting up a title page. I guess I'm hitting = some (context-) searchpath issue here that already is taken care of in = the texlive distro? any help'd be appreciated.

I guess you load the file with = your definitions with the \usemodule command.

correct.


There = has been a change a while ago and context expects now a prefix
when you load a module (e.g. p-<myfile>.tex) and when = you add now the
prefix to your file context will be able = to load it. Another solution is to add

   \enabledirectives[modules.permitunprefixed]
before the \usemodule command in your = document, the command
above tells context to also look for = modules without a prefix as last resort.

yes, this one did the trick. thanks a lot. = regarding the prefix handling/recognition, I don't
quite get it (_what_ is considered a prefix, = e.g. is there a canonical prefix separator etc. or where do I = define
the prefix?). I'll try to = hunt for it on contextgarden. if you do have a pointer, = though,
that'd be nice.


Wolfgang
= --Apple-Mail=_CA0CDCA1-7E09-43B9-8AD3-86C2B59B5F36-- --===============1675669797== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1675669797==--