From: Duncan Hothersall <dh@capdm.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Override MathML formula label
Date: Sat, 27 Jul 2019 07:23:26 +0100 [thread overview]
Message-ID: <CAN8fp9UD0Wu+PAoSugtPFyQ4S+O4QH1=g64tmmYAHQbd-mDGcA@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 748 bytes --]
Hi all.
In processing MathML if I want a formula to be numbered I add a label="X"
attribute to the <formula> tag as per:
\usemodule[mathml]
\starttext
\xmlprocessdata{}{<formula label='X'>
<math xmlns='http://www.w3.org/1998/Math/MathML'>
<mi>p</mi><mo>=</mo><mi>c</mi><mo>-</mo><mi>t</mi>
</math>
</formula>}{}
\stoptext
This will label the formula as (1). I know I can adjust how the automatic
numbering is generated using \setupformulae, but how can I override the
label used for a specific formula, say to set it to (36A)?
Basically I have a setup where formulae are mostly numbered sequentially
but occasionally individual formulae need to have an out-of-sequence or
differently formatted number.
Thanks as ever for any help.
Duncan
[-- Attachment #1.2: Type: text/html, Size: 1364 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
___________________________________________________________________________________
next reply other threads:[~2019-07-27 6:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-27 6:23 Duncan Hothersall [this message]
2019-07-28 20:04 ` Hans Hagen
2019-07-29 6:40 ` Duncan Hothersall
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='CAN8fp9UD0Wu+PAoSugtPFyQ4S+O4QH1=g64tmmYAHQbd-mDGcA@mail.gmail.com' \
--to=dh@capdm.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).