From: Florent Michel <florent.m42@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Inline equations and html export
Date: Wed, 18 Sep 2024 08:21:17 +0100 [thread overview]
Message-ID: <CALOhoeKAFYrgDVwXgGfVG_=7hk0KX7uL-rF8f-DQnF_x2iaA4Q@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1325 bytes --]
Hello,
Thanks Hans and everyone who has worked on it for the new upload!
I have noticed a change which seems to break XML/html export for inline
equations; although I don't know if the issue is with the new version or
with how I'm using it.
Minimal example:
```
\setupbackend[export=yes]
\setupexport[alternative=html]
\starttext
$1 + 1 = 2$
\stoptext
```
When compiling with ConTeXt 2024.09.17 and opening either the `.html` or
`.xhtml` file with Firefox or Chromium, the positions of the 2 and = sign
are reversed, while the equation is correctly rendered when using ConTeXt
2024.08.16.
The (I think) relevant part of the html code generated by ConTeXt
2024.09.17:
```
<div>
<math data-lmtx-blob="1" display="inline" displaystyle="false" xmlns="
http://www.w3.org/1998/Math/MathML"><mrow><mn>1</mn><mo mathcharacter="43"
mathclass="binary" mathgroup="everygroup"
mathindex="43">+</mo><mn>12</mn></mrow></math>=</div>
```
Code generated by ConTeXt 2024.08.16:
```
<div>
<math data-lmtx-blob="1" data-lmtx-meaning="1 plus 1 equals 2"
display="inline" displaystyle="false" xmlns="
http://www.w3.org/1998/Math/MathML
"><mrow><mn>1</mn><mo>+</mo><mn>1</mn><mo>=</mo><mn>2</mn></mrow></math></div>
```
Am I doing something wrong here, or is html export for inline equations not
currently supported?
Best regards,
Florent
[-- Attachment #1.2: Type: text/html, Size: 2301 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
reply other threads:[~2024-09-18 7:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CALOhoeKAFYrgDVwXgGfVG_=7hk0KX7uL-rF8f-DQnF_x2iaA4Q@mail.gmail.com' \
--to=florent.m42@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).