From: Duncan Hothersall <dh@capdm.com>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Override MathML formula label
Date: Mon, 29 Jul 2019 07:40:46 +0100 [thread overview]
Message-ID: <CAN8fp9UZ8z_A+DuzH3+VmHYczgRFNn0euxu_p9wde21Eu8O_Mw@mail.gmail.com> (raw)
In-Reply-To: <772ffd25-1f97-2964-f6b8-c6e3599ee46c@xs4all.nl>
[-- Attachment #1.1: Type: text/plain, Size: 737 bytes --]
Brilliant, thanks Hans. Looks like I need to start delving properly into
the power of the XML setups.
Duncan
On Sun, 28 Jul 2019 at 21:04, Hans Hagen <j.hagen@xs4all.nl> wrote:
>
> \usemodule[mathml]
>
> \startxmlsetups mml:formula
> \edef\mmlformulalabel{\xmlatt{#1}{label}}
> \edef\mmlformulatitle{\xmlatt{#1}{title}}
> \doifsomethingelse {\mmlformulalabel\mmlformulatitle} {
>
> \startplaceformula[reference=\mmlformulalabel,title=\mmlformulatitle]
> \startformula
> \xmlfirst{#1}{/mml:math}
> \stopformula
> \stopplaceformula
> } {
> \startformula
> \xmlfirst{#1}{/mml:math}
> \stopformula
> }
> \stopxmlsetups
>
> Duncan
[-- Attachment #1.2: Type: text/html, Size: 1178 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2019-07-29 6:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-27 6:23 Duncan Hothersall
2019-07-28 20:04 ` Hans Hagen
2019-07-29 6:40 ` Duncan Hothersall [this message]
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=CAN8fp9UZ8z_A+DuzH3+VmHYczgRFNn0euxu_p9wde21Eu8O_Mw@mail.gmail.com \
--to=dh@capdm.com \
--cc=j.hagen@xs4all.nl \
--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).