Questions tagged [mathml]

An application of XML for describing mathematical notation and mathematical content

Filter by
Sorted by
Tagged with
0 votes
1 answer
34 views

How to make MathJax equation render properly in href?

I want to make a hyperlink which contains an equation. I am using MathJax for the equation. The part of the link which contains the equation is not underlined. Here is a minimal example: <!DOCTYPE ...
Rodion  Zaytsev's user avatar
0 votes
0 answers
32 views

MathML rendering issue on mobile browser

I have a slight issue while rendering math equations using MathML on mobile: Where the parenthesis of a matrix appears like this: It renders perfectly on desktop, but not on mobile ? Is there any way ...
astle dsa's user avatar
0 votes
0 answers
10 views

Translate page on X axis then scroll back to be at same view

I have a use case where I want to translate the page on X axis by some amount , then scroll the page by the same amount to be on the same view as in the start . It's working perfectly on all devices ...
MrChaker Atallah's user avatar
0 votes
0 answers
37 views

What is proper way to display large nested math equations with MathML?

<math displaystyle="true" display="block"> <mfrac> <mn>a</mn> <mfrac> <mn>a</mn> ...
kakakali's user avatar
  • 171
2 votes
1 answer
37 views

How to get element in MathJax when crawl data?

I'm crawling a website that has the following tags by "cheerio", how can I get the entire text of the p tag and also **span * *with attribute "data-mathml". <p><strong ...
Mai Đức Thắng's user avatar
0 votes
2 answers
64 views

problem with rendering MathML tags inside asp.net core view

hi everybody i want to render MathMl tags inside view but they dont render properly these are my javascript libraries @section Styles { <script type="text/x-mathjax-config"> ...
reza setareh's user avatar
0 votes
0 answers
55 views

NoClassDefFoundError: org/w3c/dom/events/CustomEvent on call to createJeuclidDom

I'm learning to use jeuclid-core-3.1.9 in java using the Netbeans development platform with Maven. All dependencies were generated automatically by Netbeans based on the imports in the source code. I ...
Tony Dean's user avatar
1 vote
2 answers
162 views

Inconsistent MathML rendering with MathJax across different browsers

I am using better-react-mathjax ^2.0.2 (with MathJax 3.2.2) to render math expressions in a React based project. However, I am facing an issue where some expressions render differently on different ...
Vivek Kapoor's user avatar
0 votes
1 answer
56 views

Is there an R function to convert a math string to content mathml?

I am trying to find a way to convert a string that contains a math expression to content mathml (https://en.wikipedia.org/wiki/MathML#Content_MathML). For example, I have the example string "...
Justin Womack's user avatar
0 votes
0 answers
13 views

How to make MathML 's "&times;" work in a .xml file

When I use MathML in the main body of my HTML file, it works 100% of the time in my Chrome browser. But for some unknown reason, when I put the code into an .xml file and create a link to it from the ...
Peter James's user avatar
3 votes
1 answer
109 views

MathML formula looks vertically unaligned when compiling Markdown to HTML with Pandoc

I'm trying to create an HTML with a math formula, from the following markdown: // myFile.md This is a formula: $f(x) = y$ Then, I run the following command: $ pandoc --mathml myFile.md -o - The ...
sgmonda's user avatar
  • 2,625
0 votes
1 answer
67 views

MathJax works on Firefox Browser but on the rest of the Browsers it doesn't work

I use MathJax on a Website I have done. On Firefox, it all works fine, and I don't have a Problem with the MathJax input, but if I open the Site on Opera by example it doesn't work well. This is the ...
Simone's user avatar
  • 29
0 votes
0 answers
45 views

How to read text from docx with word equations included and paste it in another docx file

I tried to read docx file using Apache POI on java but XWPFParagraph type cant contain Math ML word equations. I don't know how they are written in the docx file. I heard that they're look like xml ...
Felpair's user avatar
6 votes
1 answer
106 views

Is using the <math> tag to write chemical equations semantically correct?

I have been writing chemical equations in HTML files using the <math> element. For example, to display MnSO4, I would type: <math> <mi>M</mi> <mi>n</mi> ...
Daniel McCarthy's user avatar
0 votes
0 answers
138 views

How to insert MathML Equation in Word, using Open XML SDK?

I have some LaTeX code, that need to be converted into MathML, that can then be inserted in Word with Open XML SDK. My problem is everything basically... I have tried to use the MML2OMML.XSL that ...
Johan Milter Jakobsen's user avatar
0 votes
0 answers
216 views

How to convert Mathml to LaTeX using MJAX?

Mathml to Latex conversion through Mjax is possible or not? Need Latex equation from the mathml coding. I'm able to convert mathml to tex. Is it possible to convert MathML to LaTeX through mathjax? &...
Swarnamalya Swarnamalya's user avatar
1 vote
1 answer
45 views

How can I use MathML tags on a d3 axis?

My d3 axis labels are using natural numbers, and I want them to be in a prettier form, and so I am trying to use MathML via MathJax. When I try to use MathML tags as an argument to tickFormat, it ...
HexagonalSmile's user avatar
0 votes
0 answers
27 views

All terms left of = should have same length

I want to solve an equation in MathML. So all terms (on the left of the =) should be displayed with the same length. I hoped this would work: <math class="equation" > <mrow> <...
Matthias Scharwies's user avatar
0 votes
0 answers
56 views

Could not render math formula with mathml

I have the following code to convert MathML to svg: function convertMMlToSvg() { var mml = `<math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub&...
proggaf's user avatar
  • 29
0 votes
0 answers
40 views

Why is the contentbox on a MathMl Core element to small?

I want a MathMl Core expression that can be scrolled if it is too large for the parent block width. math{ font-size: 3em; display: block; white-space: nowrap; } body{ margin: 10px; } ...
Dasch's user avatar
  • 3
0 votes
0 answers
62 views

How to add a bar over a group of elements with mover (MathML)

Using Google Chrome v109.0.5414.129. Using the example for mover I can add a curly bracket over a group of elements: (using &#x23DE;) <p><math displaystyle="true"><mover accent="...
rioV8's user avatar
  • 25.8k
2 votes
1 answer
62 views

How can I use angle brackets in MathML and ensure they are automatically sized? Using less-than/greater-than signs doesn’t work so well

MathML automatically adjusts the size of the symbols like parenthesis, e.g. "(" or "|", when they are entered as operators. For example here: <html> <body> &...
Doriano Brogioli's user avatar
3 votes
2 answers
303 views

Issue with MathML Rendering of matrix like formulas in Chrome for both on Mac and Android devices

I am using MathML rendering in my website using JQMath. Issue only on Mac OS and Android Devices - Not in Windows OS Until now all Mathml formulas are rendering Correclty but after recent update in ...
Kiran's user avatar
  • 1,165
0 votes
0 answers
125 views

prevent converting special characters to html entities ngx-editor

i am using some mathml tags inside the ngx-editor like this <math xmlns="http://www.w3.org/1998/Math/MathML"><mfrac><mn>2</mn><mn>5</mn></mfrac></...
reza setareh's user avatar
0 votes
0 answers
72 views

HTML pages with MathML opened in MS Word

I would like to open an HTML page with MS Word (Microsoft Office Standard 2019). The page contains MathML codes, e.g. this page. If I save it and open with MS Word, the formulas appear as normal text, ...
Doriano Brogioli's user avatar
0 votes
0 answers
271 views

How to render math formulas using MathML in Qwt (Qt)

On Qwt-6.1.4 there is built-in library for MathML like qwt_mathml_text_engine.cpp And after writing such a code: QwtPlot* plot = new QwtPlot(QwtText("<apply><sin/><ci>x</ci&...
Max Popov's user avatar
  • 357
0 votes
1 answer
112 views

Brackets not displayed in MathML (firefox)

The MathML code is such: <math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>min</mi><mfenced open="(" close=")"><mrow><mn&...
Lessness Randomness's user avatar
0 votes
0 answers
235 views

How to convert MathML to Text(Python)

I'm working on a project where the program should simplify a term. First, this should be read from the website, then calculated and then return the correct solution. However, I have the problem that ...
ktownmaxi's user avatar
0 votes
1 answer
132 views

docx4j: help converting XHTML with MathML

I am using docx4j-ImportXHTML to convert XHTML word files. Now I want to add math (equations) support. I know that I need to include an XSL stylesheet to convert MathML to OMML but I am lost on how to ...
Opusci's user avatar
  • 21
2 votes
0 answers
301 views

MathJax doesn't render open symbols in react

I am currently working with formulas in MathML (it is a requirement, the data comes this way from the backend, I cant edit the database): I am using MathJax in react with better-react-mathjax for ...
Vei Jar's user avatar
  • 118
0 votes
0 answers
119 views

Convert html file with inline mathml equations to a html with svg equations

I have a big html file full of text, png figures and mathml equations. I would like to convert all the mathml equations to svg images, since I will be reading this html in a device that does not ...
Socrates's user avatar
0 votes
1 answer
69 views

Named entities in Reportlab

I just learned that Reportlab will support named entities like &alpha; and &approx; in paragraph text. Exactly which entities will it support? Here's an example of how it works: from reportlab....
Don Kirkby's user avatar
  • 54.5k
1 vote
1 answer
552 views

Getting underscore in Jupyter notebook equation (mathml)?

Not sure if the answer here Jupyter notebook not printing underscores? is related: The problem is not with Jupyter notebook but with the way the underscore is rendered in the example. The browser ...
sdbbs's user avatar
  • 4,488
-1 votes
1 answer
222 views

I need to integrate CKeditor in react-native app

I need to integrate ckeditor or any editor alike inside react native,I found documentation for reactjs but not getting exact way to how to use inside RN app.
shailzzz's user avatar
1 vote
0 answers
409 views

How to render MAthml tags in reactjs from string?

My code is not working. It's also showing a warning for "react-mathjax-preview": Could not find a declaration file for module 'react-mathjax-preview'. My code is: import React from "...
Gouri Nakate's user avatar
1 vote
0 answers
28 views

Is mathml allowed in an rss or atom feed?

Is mathml allowed in a rss or atom feed? I realize this might not be supported in all feed readers but is this at least the theoretically right thing to do to display math in a feed?
Peter Gerdes's user avatar
  • 2,508
2 votes
1 answer
172 views

PHP HTML Purifier and MathML

Is there any simple way to allow all MathML tags with attributes in HTML Purifier? I tried to put all the MathML tags from https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics with ...
rev2012's user avatar
  • 105
0 votes
1 answer
73 views

Which regex condition could I use in to capture a math formula with units in R?

I am looking at codes in odf formulas that look a bit like this: {500mgl} over {4.05grams} I want to use a regex with gsub in R to enclose in brackets all of the elements with the pattern ([0-9]+)([...
GEX_HEX_420's user avatar
1 vote
0 answers
694 views

mathml to latex conversion using mml2tex(XSLT)

I am trying to convert MathML to LaTex using XSLT with the templates available in https://github.com/transpect/mml2tex. This is working fine for MathML with the namespace. But the same not working ...
Bala's user avatar
  • 68
1 vote
0 answers
425 views

How to display MathML in VSCode and Markdown Preview Enhanced?

I often write Markdown in VSCode. I use "Markdown Preview Enhanced(MPE)" as an extension. It is useful to use TeX to write mathematical expressions. However, when I use MPE to convert to ...
ysug's user avatar
  • 11
0 votes
1 answer
343 views

MathJax won't display MathML formula with a TeX annotation

I use MathJax 3.2.0 to display MathML formulæ on web pages: <math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mrow data-mjx-texclass="INNER"&...
Alexander Mashin's user avatar
0 votes
1 answer
91 views

MathJax Spacing Issue when displaying data from wolfram api

I am creating a fork of a wolfram step by step api query app. I have gotten the api interaction working fine its available here: https://abinash18.github.io/AbisWolframSolver/ The problem I have is ...
Boozie's user avatar
  • 39
0 votes
0 answers
55 views

Mathjax - Excluding some files and folders from local installation

On a local installation of MathJax on a Windows 10 desktop, if we are using tex-chtml.js file to display math, which other files and folders (if any) can we remove from the following es5 folder? List ...
nam's user avatar
  • 22.5k
1 vote
0 answers
182 views

MathJax: Input & Trigger Button Event

The answer here shows how to essentially create an HTML input within a math equations that is compatible with MathJax. For example, $$3+3=\input[q1][1em]{}$$ would be essentially equivalent to typing ...
William Garske's user avatar
1 vote
0 answers
169 views

Arrow symbol for chemical equation

I need to reproduce the following arrow symbol for a chemical reaction I tried something like this: ⟶1. BH32) H2O2, NaOH but it doesn't look good. I'd like to avoid images for such a small amount of ...
gioretikto's user avatar
0 votes
0 answers
137 views

math tag get removed when incerting mathml in dom via innerHtml

I want to render MathML but when I push data into dom all math tags and its subtags get removed I and inserting this data in quill view, div and innerHtml but in all cases problem is same <p>In ...
santosh vishwakarma's user avatar
5 votes
1 answer
4k views

Deserializing recursive XML using Serde in Rust

I'm trying to deserialize MathML using Serde and Quick-XML in Rust. I'm having trouble trying to write the structs because of the recursive nature of MathML. Here's a minimal, reproducible example: ...
Pranav Ballaney's user avatar
-2 votes
1 answer
271 views

How to match string between two words, and repeat this pattern for all two defined words in the string, Regex?

So I want to extract MathML from HTML. For example, I have this string: <p>Task:&nbsp;</p><math xmlns="http://www.w3.org/1998/Math/MathML"><mrow><mi>x</...
Bohdan Kornatskyi's user avatar
0 votes
1 answer
133 views

Math jax unable to convert equation with backticks to word equation

`[[2 1 3], [0 3 5], [-1 2 5]]` + `[[1 -2 3], [2 6 1], [0 -3 1]]` Above is the equation, when I am using mathjax 3.1.4, it gets rendered in html but the dialog to copy as MathML code is not appearing. ...
Aditya Kumar's user avatar
2 votes
3 answers
1k views

Vue replaces "open" attribute to value "open" in any tag

I'm using vue.js (v2.6.12) components in laravel blade templates. For the project, I'm also using MathML in which I need to use the open attribute of <mfenced> tag to be set to some custom ...
Sukanta Paul's user avatar

1
2 3 4 5
10