From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104692 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Override MathML formula label Date: Sat, 27 Jul 2019 07:23:26 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4634691894167688555==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="208372"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 27 08:24:23 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrG7w-000s11-R8 for gctc-ntg-context-518@m.gmane.org; Sat, 27 Jul 2019 08:24:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F1572152DC0; Sat, 27 Jul 2019 08:23:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ph0A8bWCJyMs; Sat, 27 Jul 2019 08:23:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 27450152E3E; Sat, 27 Jul 2019 08:23:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF666152DC0 for ; Sat, 27 Jul 2019 08:23:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LZ5j_fIP1Z60 for ; Sat, 27 Jul 2019 08:23:44 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.47; helo=mail-io1-f47.google.com; envelope-from=dh@capdm.com; receiver= Original-Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id DCA34152B65 for ; Sat, 27 Jul 2019 08:23:43 +0200 (CEST) Original-Received: by mail-io1-f47.google.com with SMTP id z3so109383500iog.0 for ; Fri, 26 Jul 2019 23:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capdm.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=N2qXIUN6thNG8kGU9dA7XML3y3xgN1GSuXSSzuakv9I=; b=v1+6HQOXEW/SfEmFWjVIRT2Ifv2KerOMl9sUQPlVP5ZnmRSU8dk4uefDy7mco37J9P XwzDpLfff4Ezno9fHanvUkrFzjrVUWoqqRewBCrIO0ch46Lk3L0Vy1v8PKR8GAnN0Kpc eVndRhcLavnWWHhuuvqZFv0DYzIsbA0sgHXtA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N2qXIUN6thNG8kGU9dA7XML3y3xgN1GSuXSSzuakv9I=; b=fG4PsD3pspzeqOvzAQbvHAqRcJIqe77jbMK57TM2IEoR030Ii5XiOG8Jwlrkdh9jwI yW7jnEHgziEEUOtnruHGRJblVSK1gVKwItuoXJVTF8RpvvUORfgI6howJpyD84GiTp3I iSBZKWdFB3ppgA7QMBsMhg5iMmDorhEV0aKypJaST11yMEx1YIgbmx+Y4ugUqUID62rM Si/XZR34+9QnzyHD7BjkXqRg5xd6C2PfyVxPqeFm4uuHQ5ogJqPtX7S9SnuBELO+q10n WH7SF3+a2FnQW+mBqkSpwZ8+DkKaXP9CTqc6KyRnErXm1FNBMDpESG+xrmfgvFfIYdPR iqJg== X-Gm-Message-State: APjAAAWKvu7PVj9uSYVef4xyEONzV1nheDooViQhXqR4II9Lay9OShNR OZxvTLSuJXU7aXHXeUkppsP7ZIqDQpcKAbjiNf4ZLEYQfujIOw== X-Google-Smtp-Source: APXvYqzn1QAoBkYmITQv0QAaARChZLEzwItPMHk9wWJmj00DWkNudUyCZLmq3XPPiAg7X8oWTBZvYV7NkmzSOActGLA= X-Received: by 2002:a5e:9506:: with SMTP id r6mr26331032ioj.219.1564208622009; Fri, 26 Jul 2019 23:23:42 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:104692 Archived-At: --===============4634691894167688555== Content-Type: multipart/alternative; boundary="000000000000451807058ea3b3ef" --000000000000451807058ea3b3ef Content-Type: text/plain; charset="UTF-8" Hi all. In processing MathML if I want a formula to be numbered I add a label="X" attribute to the tag as per: \usemodule[mathml] \starttext \xmlprocessdata{}{ p=c-t }{} \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 --000000000000451807058ea3b3ef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all.

In processing MathML if I want = a formula to be numbered I add a label=3D"X" attribute to the <= ;formula> tag as per:

\usemodule[mathml]
\st= arttext
\xmlprocessdata{}{<formula label=3D'X'>
=C2=A0&= lt;math xmlns=3D'http://= www.w3.org/1998/Math/MathML'>
=C2=A0 <mi>p</mi>&l= t;mo>=3D</mo><mi>c</mi><mo>-</mo><mi>= ;t</mi>
=C2=A0</math>
</formula>}{}
\stoptext

This will label the formula as (1). I know I can adjust how= the automatic numbering is generated using=C2=A0\setupformulae, but how ca= n I override the label used for a specific formula, say to set it to (36A)?= =C2=A0
=

Basically I have a setup where formulae are mostly numbere= d sequentially but occasionally individual formulae need to have an out-of-= sequence or differently formatted number.

Thanks a= s ever for any help.

Duncan
--000000000000451807058ea3b3ef-- --===============4634691894167688555== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============4634691894167688555==--