From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to hack the lua files
Date: Fri, 7 Jun 2013 15:17:22 +0200 [thread overview]
Message-ID: <CAG5iGsCOz2jwyWnDoipUsZbLBfu8B5fZMuo4UwotOWpPMqgnQQ@mail.gmail.com> (raw)
In-Reply-To: <51b1d960.e7e6440a.3048.09fa@mx.google.com>
[-- Attachment #1.1: Type: text/plain, Size: 1078 bytes --]
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]
\setupformulas[way=bytext,prefix=no]
\setupsubformulas[conversion=romannumerals]
\starttext
\placenamedformula[eq:TEST]{Der einfache Test}
\startformula
c^2 = a^2 + b^2.
\stopformula
\stoptext
and look into the tuc file (it's a lua file)
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 1541 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-06-07 13:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1195.1370589979.2084.ntg-context@ntg.nl>
2013-06-07 13:00 ` Lance Larsen
2013-06-07 13:03 ` luigi scarso
2013-06-07 15:27 ` Sietse Brouwer
2013-06-07 15:36 ` Hans Hagen
2013-06-07 15:36 ` Wolfgang Schuster
2013-06-07 15:42 ` luigi scarso
2013-06-07 15:49 ` Sietse Brouwer
2013-06-07 16:21 ` luigi scarso
2013-06-07 13:17 ` luigi scarso [this message]
2013-06-07 13:48 ` Wolfgang Schuster
2013-06-07 13:13 ` Lance Larsen
2013-06-07 13:48 ` Hans Hagen
[not found] <mailman.1201.1370610850.2084.ntg-context@ntg.nl>
2013-06-07 14:01 ` Lance Larsen
2013-06-07 14:10 ` Hans Hagen
2013-06-06 23:20 Lance Larsen
2013-06-07 7:25 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAG5iGsCOz2jwyWnDoipUsZbLBfu8B5fZMuo4UwotOWpPMqgnQQ@mail.gmail.com \
--to=luigi.scarso@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).