From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82822 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to hack the lua files Date: Fri, 7 Jun 2013 15:48:07 +0200 Message-ID: <3DEAA939-6570-43EB-9037-BB4A60AF6F8A@gmail.com> References: <51b1d960.e7e6440a.3048.09fa@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/mixed; boundary="===============1453580737==" X-Trace: ger.gmane.org 1370612902 3840 80.91.229.3 (7 Jun 2013 13:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Jun 2013 13:48:22 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 07 15:48:23 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ukx1i-0007Mt-PO for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jun 2013 15:48:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B7E66101F0; Fri, 7 Jun 2013 15:48:21 +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 jId1I92SHZKn; Fri, 7 Jun 2013 15:48:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D3836101E9; Fri, 7 Jun 2013 15:48:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F330101E9 for ; Fri, 7 Jun 2013 15:48:18 +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 vYeZ1-oTD4-j for ; Fri, 7 Jun 2013 15:48:17 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 43162101E6 for ; Fri, 7 Jun 2013 15:48:07 +0200 (CEST) Original-Received: from mail-ee0-x22b.google.com (mail-ee0-x22b.google.com [IPv6:2a00:1450:4013:c00::22b]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r57Dm6Zh015328 for ; Fri, 7 Jun 2013 15:48:06 +0200 Original-Received: by mail-ee0-f43.google.com with SMTP id l10so1056057eei.30 for ; Fri, 07 Jun 2013 06:48:06 -0700 (PDT) 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:x-mailer; bh=9QpkU7c7/J1Mpvdf/8MnGq0JFp2B9o3yFTFQd2WU6Js=; b=QVGE7L1KXvoAsx529UJcljroQNEbwAndngNPV5ey/yM9+HKItXL+tVIgYtRGKumoH0 WsCM2APicVLtYDS/Ge0DPJlVfbQWyvMHqRv/cN3q3OGkQ7551dLaBVTcf2Qt6cfOe767 tROQMmlRVEt8QlmRPouOMhPnp4FFlw4t63jXNsms6tX+ZWEABvAtU/WyV2GbdH+Cyz1j g9RNLaU1ewW6s8n27zRMTkQsa/xrC1VnpN2hVtOpf4LuLzbdmQ/sxgxLK58OAXt0JBxj EI/khkiclU6+zGMODaKClGMkr25TQ1PqwdBNyqeLIeoZsngBT83fqVUpP2YTphq5iFTg 6DGg== X-Received: by 10.15.64.202 with SMTP id o50mr9348507eex.44.1370612886071; Fri, 07 Jun 2013 06:48:06 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d073150.pool.mediaWays.net. [77.7.49.80]) by mx.google.com with ESMTPSA id ba7sm28039442eeb.0.2013.06.07.06.48.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 06:48:05 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VJJpM6vi - 1d8b3cc9f346 - 20130607 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82822 Archived-At: --===============1453580737== Content-Type: multipart/alternative; boundary="Apple-Mail=_5B10D214-08FC-4D0D-80D8-E2C08287143E" --Apple-Mail=_5B10D214-08FC-4D0D-80D8-E2C08287143E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 07.06.2013 um 15:17 schrieb luigi scarso : >=20 >=20 >=20 > On Fri, Jun 7, 2013 at 3:00 PM, Lance Larsen = wrote: > If I modify a core lua file how do I remake the format file? Is this > something that is done from mtxrun.exe? I would certainly prefer to = use a > hook rather than modifying a core file, but how do I identify the = hooks that > are available? Is there a list of hooks that are available, or a = standard > way that hooks are called from the context code so that I can look for = an > appropriate hook? Where do I place my hook scripts? Is there a guide = that is > available that might get me started? >=20 > What I trying to do is map equation references to the equation number > generated by context. So for example, if I have an equation: >=20 > \placeformula \startformula > \NC F =3D m a \NC \NR[eq:newtonslaw] > \stopformula >=20 > \usemodule[newmath] =46rom the log-file: resolvers > modules > 'newmath' is not found Wolfgang= --Apple-Mail=_5B10D214-08FC-4D0D-80D8-E2C08287143E Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
Am 07.06.2013 um 15:17 schrieb luigi scarso <luigi.scarso@gmail.com>:




On Fri, Jun 7, 2013 at 3:00 PM, Lance Larsen <lance.c.larsen@gmail.com> wrote:
If I modify a core lua file how do I remake the format file? Is this
something that is done from mtxrun.exe? I would certainly prefer to use a
hook rather than modifying a core file, but how do I identify the hooks that
are available? Is there a list of hooks that are available, or a standard
way that hooks are called from the context code so that I can look for an
appropriate hook? Where do I place my hook scripts? Is there a guide that is
available that might get me started?

What I trying to do is map equation references to the equation number
generated by context. So for example, if I have an equation:

\placeformula \startformula
\NC F = m a \NC  \NR[eq:newtonslaw]
\stopformula

\usemodule[newmath]

From the log-file:

resolvers       > modules > 'newmath' is not found

Wolfgang
--Apple-Mail=_5B10D214-08FC-4D0D-80D8-E2C08287143E-- --===============1453580737== 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 ___________________________________________________________________________________ --===============1453580737==--