Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cancellation of Terms in MathML #251

Open
NV-Codes opened this issue Feb 1, 2025 · 1 comment
Open

Support Cancellation of Terms in MathML #251

NV-Codes opened this issue Feb 1, 2025 · 1 comment

Comments

@NV-Codes
Copy link

NV-Codes commented Feb 1, 2025

Description

It would be very useful for Pandoc to be able to convert the \cancel, \bcancel, and \xcancel LaTeX commands to MathML as described below (from NSoiffer/MathCAT#341):

The way I would suggest is to use menclose . It has the attribute notation with many options. For cancellation, one or both values updiagonalstrike downdiagonalstrike would make sense.

<math>
   <menclose notation='downdiagonalstrike'>  <mfrac><mn>3</mn><mn>2</mn></mfrac> </menclose>
</math>

It currently seems that, when typing math in Pandoc's Markdown, base LaTeX and amsmath commands are able to be converted to MathML. The three commands listed above are part of the cancel package.

@tmke8
Copy link

tmke8 commented Mar 2, 2025

One problem with <menclose> is that it's not part of MathML Core and so has poor support in browsers (only Firefox supports it). However, there have been discussions about adding it to MathML Core: w3c/mathml-core#245 (and I personally would definitely be in favor of that).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants