Questions tagged [mathml]

MathML is a way to describe mathematical expressions with XML.

Filter by
Sorted by
Tagged with
3 votes
1 answer
32 views

make4ht \boxed rendering wrong when using MathML

My MWE is: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \boxed{A} \boxed{B} \] \end{document} When I compile using pdflatex I got the two boxes side by side, but when compiling ...
Valdinei Rodrigues's user avatar
1 vote
0 answers
51 views

Difficulty loading multiple LATEX's symbols in a mathematical website [closed]

how are you doing? For some time now, I've been writing some texts about Olympiad mathematics on a wiki. You can find this wiki at the following address: https://olimpedia.fandom.com/pt-br/wiki/...
Nilton Cesar's user avatar
2 votes
1 answer
34 views

Bad output with make4ht array and mathml

I am compiling the following latex file: \documentclass{article} \begin{document} $\begin{array}{c} 1\\ 2 \end{array}$ \end{document} Compiling the above via TeXlive 2023 up to date (14/06/2023) ...
Manuel Cart's user avatar
2 votes
1 answer
195 views

Issue with mhchem and fractions in make4ht and mathml

I am compiling a chemistry-heavy text and I noticed that mhchem on Overleaf did not create superscripts and subscripts when compiled with make4ht. Upon downloading the newest release, which put the ...
Justin Shorb's user avatar
1 vote
1 answer
284 views

Make4ht MathML and TeX

When using Make4ht how to get MathML and LaTeX code in HTML? My MWE is: %!TEX TS-program = lualatex %!TEX encoding = UTF-8 Unicode \documentclass{elife} \title{Grasp movement initiation and ...
Balaji's user avatar
  • 2,282
4 votes
1 answer
162 views

Scaling delimiters in MathJax

I use TeX4ht with MathJax to convert tex to HTML/MathML. One issue I have is that delimiters scale depending on the height of the line, even if the tall content is not between the delimiters. For ...
user44413's user avatar
  • 601
0 votes
1 answer
341 views

How to write LaTeX in browsers (in other words HTML)?

I know it is a dumb question because there is MathJax and MathML. But lots of people has said that MathJax also have MathML support. And in https://artofproblemsolving.com, I found that MathJax doesn'...
RajinCoding2007's user avatar
5 votes
3 answers
543 views

how to programmatically convert mathml or LaTeX formulas in spoken words?

I've a formula, eg: where the latex's code is: \int_{a}^{b} \frac{1}{\sqrt{\rho}} d\rho The output should be somthing like this: "The integral from a to b of one over the square root of ro in ...
Ivan Buttinoni's user avatar
2 votes
0 answers
394 views

LaTeX and accessibility

I work as a manuscript editor with only so much LaTeX knowledge (though I am in the process of learning so I can better assist students). At my University, we've begun requiring accessible documents ...
erickaf's user avatar
  • 21
3 votes
1 answer
104 views

TeX4ht: can we prevent italic capital greek letters in mathml or mathml,mathjax output

I am trying to convert document to HTML with MathML rendered by MathJax (the reason is that pure mathjax output does not do proper equation numbering). Unfortunately, I get all the capital greek ...
Fedxa's user avatar
  • 325
2 votes
1 answer
102 views

tex4ebook: math symbols in footnote labels

Inspired by other answer I found here, I decided to use endnotes to have all my footnotes and the end of my ebook. The solution works and epubchecker does not complain. Unfortunately, uploading to ...
Juan's user avatar
  • 23
3 votes
1 answer
75 views

Problem with boldmath followed by super or subscript in tex4ebook

The latex file \documentclass{amsbook} \begin{document} $\mathbf{x}^y$ \end{document} when compiled with tex4ebook -f epub3 test "mathml" produces the following mathml: <math xmlns=&...
Roobie Nuby's user avatar
2 votes
2 answers
190 views

MathML as well need LaTeX coding in tex4ht

I would like to convert the below file to MathML format as well need the LaTeX coding in MathML Semantic tag. MWE: \documentclass{article} \usepackage[T1]{fontenc} \begin{document} \article{Article ...
Balaji's user avatar
  • 2,282
1 vote
0 answers
77 views

Convert MPadded MathML tag to LaTeX

I try to convert a MathML document to a LaTeX. MathML have a mpadded tag that modify an inside box. They have following attributes: depth (sets or increments the depth); height (sets or increments ...
Denis Sletkov's user avatar
6 votes
3 answers
2k views

Latex -> html with mathematical equations for accessibility to generate MathML

Edit, original question below - I would like to simplify the question to the following: What is the best way to take a LaTeX input file, which includes matrices and vectors in formulae and make it ...
tom's user avatar
  • 778
1 vote
1 answer
135 views

Are there any packages to import bibxml into (la)tex?

While I was able to find several packages to export bibtex to bibxml, and even the whole latex stuff to xml/mathml, I could not find anything in the opposite direction. Of course it would be great to ...
მამუკა ჯიბლაძე's user avatar
3 votes
1 answer
594 views

Converting MathML to LaTeX: Use of \mathop and msub tag

When using David Carlisle's stylesheet to convert MathML to LaTeX, for some reasons, the subscript on an integral symbol seems to display noticeably farther from the integral as shown below: MathML: ...
nam's user avatar
  • 1,105
1 vote
0 answers
187 views

Problems when embedding LaTeX \dot and \hat into Microsoft Word thru MathML [closed]

From the post Embed LaTeX math equations into Microsoft Word , I know \dot{z} in LaTeX can be translated in MathML as: <?xml version="1.0"?> <math xmlns="http://www.w3.org/1998/Math/MathML" ...
isend's user avatar
  • 143
2 votes
0 answers
163 views

Converting MathML to LaTeX: limits position on summation symbol

When using David Carlisle's stylesheet to convert MathML to LaTeX, in most cases, the upper and lower limits are correctly placed above and below the summation symbol. But when I convert the ...
nam's user avatar
  • 1,105
1 vote
1 answer
76 views

Some symbols load (display) issue when converting MathML to LaTeX

I'm using David Carlisle's stylesheet to convert MathML to LaTeX. The stylesheet does a phenomenal job for converting even very complex MathML into LaTeX. But I'm having trouble displaying following ...
nam's user avatar
  • 1,105
2 votes
1 answer
276 views

\displaystyle and \limit commands don't seem to work when rendering to mathml

I am trying to render a latex file to mathml for viewing in firefox. However, when trying to render the following example: \documentclass{article} \begin{document} \(\displaystyle\sum\limits_i\) \end{...
reedef's user avatar
  • 23
0 votes
0 answers
221 views

How to convert LaTeX to mathml code directly? [duplicate]

In microsoft word it can't understand every mathematical equation that I input in latex correctly.the only language that it understands correctly is the mathml code. But to do so I have to input the ...
Hawkingo's user avatar
  • 113
0 votes
1 answer
135 views

ltablex hack in LatexML?

I need to access to ltablex-like functionality within the confines of the packages available to LatexML. Namely, a long table that needs to have wrapped text in columns. Ordinarily, I'd do something ...
Mark's user avatar
  • 135
4 votes
1 answer
8k views

Convert MathML to LaTeX

Here is an example: Input: <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi mathcolor="#FF0000">y</mi> <mo mathcolor="#00FF00">&#x2212;</mo> <msub> ...
alan's user avatar
  • 173
1 vote
1 answer
135 views

Wrong tag ordering in mathml produced using htlatex

I am converting large mathematical documents from latex to html + mathml. I have wrongly shaped file as output in some situations. An example is as follows. The main file test.tex is: \documentclass{...
Thomas Colcombet's user avatar
3 votes
1 answer
361 views

htlatex: tweaking the MathML output for numbers with more than one digit

I'm using htlatex to produce screen-readable (https://www.nvaccess.org/) MathML. Using the following file mwe.tex \documentclass{article} \begin{document} Here is a function $f(x)=15$. Here is a ...
cmhughes's user avatar
  • 101k
1 vote
1 answer
512 views

MathML conversion not matched with LaTeX output using TeX4ht

My code as follows: \documentclass{book} \usepackage{amsmath} \begin{document} Test \begin{equation} \left.\begin{array}{c} \displaystyle\sum\limits_{t=0}^{T}\pi \rho^{t}\overset{\textrm{add and ...
MadyYuvi's user avatar
  • 13.6k
2 votes
0 answers
255 views

How to get decent math rendering with Tex4ht?

After resolving the hyperref issues with tex4ht, I'm still having issues with the math rendering. The following MWE compiles fine with pdflatex, except for the d operator: \documentclass[a4paper, ...
winkmal's user avatar
  • 845
1 vote
0 answers
153 views

htlatex mathml code loss

I am using htlatex to convert a LaTeX to HTML. I am writing the simple equation in latex document. This equation is converted my required MathML coding output 1. Mathml Output 1: <mml:math ...
CS Kumar's user avatar
  • 1,253
4 votes
2 answers
1k views

how can I get bold symbols using \boldsymbol and tex4ht with MathML output?

Here is a sample from a LaTeX document I want to convert to HTML. \documentclass[11pt]{book} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amscd} \...
Matteo Ipri's user avatar
2 votes
1 answer
3k views

How convert HTML to LaTeX or MathML

I using KaTeX to render HTML formula display. How can I convert HTML to LaTeX or KaTeX again?
vxba's user avatar
  • 21
6 votes
0 answers
483 views

Is there a Software to convert TeX to LaTeX? [closed]

Is there a software to convert TeX to LaTeX? I have a file that needs to be converted into MathML in order to convert it to HTML and some of this files are in a TeX format.
Kurt Pino's user avatar
2 votes
1 answer
320 views

mathml configuration

I need a customized mathml coding. mml: text should be added globally all mathml coding Current Coding: <math display="block" class="equation"><mi>a</mi> <mo class="MathClass-...
CS Kumar's user avatar
  • 1,253
1 vote
0 answers
281 views

How to resolve the invalid-markup

I am using tex4ht to convert a tex to mathml coding. I mentioned two types of equation. MWE \documentclass{article} \usepackage{amsmath} \begin{document} \section{First Output} \begin{equation} ...
CS Kumar's user avatar
  • 1,253
2 votes
1 answer
386 views

How to get a customize mathml coding

I am using the tex4ht and try to convert tex to html document. Mathml coding is used to convert the equations. But i need to customize the mathml coding. I would like to separate the simple, complex ...
CS Kumar's user avatar
  • 1,253
5 votes
1 answer
687 views

htlatex and differences between html and xhtml

To date, I have generated html files using htlatex rather than xhtml. This has been for one simple reason. I can right click on the html file and open it in MS word to then save and distribute to ...
EngBIRD's user avatar
  • 3,975
1 vote
3 answers
6k views

converting Mathml to LaTeX in python programming

I am writing one educational software right now. It's kind of online test for school students. I add up the questions using my editor, I need the math functionality therefore I need to use this editor,...
Chitrank Dixit's user avatar
1 vote
1 answer
787 views

How do I convert MathML characters to XML in texmath? [closed]

I'm in the process of converting LaTeX to MathML in PHP. texmath is the command line tool through which the conversion process can be done. Latex file: \mathbf{f} = (f_{1}, f_{2})^{\prime} test....
vidhya's user avatar
  • 219
19 votes
5 answers
20k views

LaTeX to MathML conversion: tools, limitations, and approaches?

As far as I understand there are two ways to display LaTeX on the web: The MathJax JavaScript library, which allows you to embed LaTeX directly within HTML tags, but such LaTeX is converted by ...
John Sonderson's user avatar
3 votes
1 answer
513 views

Why using {newtxtext,newtxmath} packages breaks MathML generation in tex4ht?

I found when adding the line \usepackage{newtxtext,newtxmath} breaks mathml generated by tex4ht and hence the math looks bad when viewed in the browser. It seems to be a font issue. I am using ...
Nasser's user avatar
  • 20.8k
3 votes
1 answer
278 views

What LaTeX math is not covered in the MathML specification?

Does anybody have an exhaustive list of what parts of the standard LaTeX math macros that are not covered by the MathML specification? By standard, ideally I mean the maths packages distributed with ...
Luciano's user avatar
  • 163
2 votes
1 answer
203 views

tex4ht mathml output: how to get <mi>abc</mi> instead of <mi>a</mi><mi>b</mi><mi>c</mi>

tex4ht with mathml option generates <mi>a</mi><mi>b</mi><mi>c</mi> from $abc$. Is there a way to get <mi>abc</mi> output? MWE (foo.tex): \...
deimi's user avatar
  • 1,173
2 votes
0 answers
799 views

Problem with Latin Modern in HTML [closed]

I ask this question here because "Latin Modern" is a font, now also available in OpenType format, that's derived from Knuth's "Computer Modern", which is is mainly known by and of interest to the TeX/...
William  F. Hammond's user avatar
5 votes
1 answer
1k views

What LaTeX math markup can pandoc translate into MathML?

I'm working with a gitit wiki because we can use LaTeX markup for mathematical formulas. However, I am learning that I can't use such sequences as $\mathbb R$ or $\mathcal A$ or even $\mathbf X$, as ...
Norman Ramsey's user avatar
1 vote
1 answer
398 views

siunitx package use with tex4ht and generation of invalid mathml for units

This file \documentclass{article} \usepackage{siunitx} \begin{document} \SI{10}{\square\meter} $\SI{10}{\square\meter}$ \end{document} Builds fine in padlatex, but fails in the HTML generated by ...
Nasser's user avatar
  • 20.8k
3 votes
0 answers
472 views

"Display math should end with $$" when using MathML with amsmath and \fbox with tex4ht

I just like to get an understanding on why I get this error, only when I use MathML and not in other configurations. pdflatex work fine with this MWE. Only when there is an \fox{}, will tex4ht gives ...
Nasser's user avatar
  • 20.8k
2 votes
2 answers
988 views

How to fix these MathML generated code by Tex4ht, or change Latex code to bypass the problem

updated: Added the MathML code in source form at the bottom of this, as requested. I am now configuring tex4ht to generate MathML instead of .png for the math. Then MathJax is loaded for final ...
Nasser's user avatar
  • 20.8k
8 votes
1 answer
272 views

Are there efforts to develop a standard for (La)TeX-like math syntax?

One of the reasons many people in technical disciplines start using LaTeX in the first place is for the ease of typesetting mathematical formulas with it. In some circles, LaTeX-like syntax has become ...
Charles Staats's user avatar
2 votes
1 answer
548 views

displaying TeX in web app

First I tried to ask this question on stackoverflow but it looks like that it's TeX specific. I'm having a TeX file on server, and need to display it in web page. The first thing I was thinking about ...
Eugeny89's user avatar
  • 165
5 votes
1 answer
753 views

using mathml in htlatex makes it lose the table p-width specification in generated html

It took me a while to find the cause of this. when giving p{} for table column width, and also using mathml option, then htlatex losses the width specs in the generated HTML table. It is very simple ...
Nasser's user avatar
  • 20.8k