Questions tagged [mathml]

MathML is a way to describe mathematical expressions with XML.

Filter by
Sorted by
Tagged with
1 vote
1 answer
83 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 ...
user avatar
  • 2,126
4 votes
1 answer
115 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 ...
user avatar
  • 601
0 votes
1 answer
93 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'...
user avatar
3 votes
1 answer
72 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 ...
user avatar
1 vote
0 answers
101 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 ...
user avatar
  • 11
3 votes
1 answer
56 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 ...
user avatar
  • 195
2 votes
1 answer
73 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 ...
user avatar
  • 23
3 votes
1 answer
45 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=&...
user avatar
2 votes
2 answers
108 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 ...
user avatar
  • 2,126
1 vote
0 answers
46 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 ...
user avatar
6 votes
3 answers
887 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 ...
user avatar
  • 638
1 vote
1 answer
61 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 ...
user avatar
3 votes
1 answer
184 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: ...
user avatar
  • 965
1 vote
0 answers
89 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" ...
user avatar
  • 143
2 votes
0 answers
101 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 ...
user avatar
  • 965
1 vote
1 answer
49 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 ...
user avatar
  • 965
2 votes
1 answer
201 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{...
user avatar
  • 23
0 votes
0 answers
212 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 ...
user avatar
  • 103
0 votes
1 answer
92 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 ...
user avatar
  • 125
2 votes
1 answer
6k 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> ...
user avatar
  • 143
1 vote
1 answer
85 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{...
user avatar
3 votes
1 answer
333 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 ...
user avatar
  • 96.1k
1 vote
1 answer
450 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 ...
user avatar
  • 11.2k
2 votes
0 answers
242 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, ...
user avatar
  • 825
1 vote
0 answers
148 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 ...
user avatar
  • 1,231
4 votes
2 answers
979 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} \...
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?
user avatar
  • 21
6 votes
0 answers
450 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.
user avatar
2 votes
1 answer
263 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-...
user avatar
  • 1,231
1 vote
0 answers
245 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} ...
user avatar
  • 1,231
2 votes
1 answer
303 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 ...
user avatar
  • 1,231
5 votes
1 answer
650 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 ...
user avatar
  • 3,955
1 vote
3 answers
4k 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,...
user avatar
1 vote
1 answer
704 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....
user avatar
  • 199
17 votes
5 answers
14k 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 ...
user avatar
3 votes
1 answer
472 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 ...
user avatar
  • 18.3k
3 votes
1 answer
259 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 ...
user avatar
  • 163
2 votes
1 answer
196 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): \...
user avatar
  • 1,143
2 votes
0 answers
716 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/...
user avatar
5 votes
1 answer
883 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 ...
user avatar
1 vote
0 answers
330 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 ...
user avatar
  • 18.3k
3 votes
0 answers
446 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 ...
user avatar
  • 18.3k
2 votes
2 answers
900 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 ...
user avatar
  • 18.3k
8 votes
1 answer
251 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 ...
user avatar
2 votes
1 answer
402 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 ...
user avatar
  • 165
5 votes
1 answer
739 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 ...
user avatar
  • 18.3k
6 votes
1 answer
370 views

Bad mathchar (79119) using htlatex+mathml with \uparrow with align from amsmath package

texlive 2012 debian package: \documentclass[]{article}% \usepackage{amsmath} \begin{document} \begin{align} & \uparrow\sum F \end{align} \end{document} compile with htlatex report....
user avatar
  • 18.3k
10 votes
2 answers
2k views

conversion issues using htlatex and MathJax/mathML method

I am using the method shown in this answer below to convert my LaTeX file to HTML so that the resulting LaTeX file is processed by MathJax via MATHML: Convert Latex to MathJax-HTML "... mathml ...
user avatar
  • 18.3k
46 votes
5 answers
13k views

Recommended workflow? LaTeX -> ePub with math viewable on iPad

This started as a comment in an older thread, but I thought I repost it here as a question to the forum... I'm looking for a workflow that will take me efficiently and reliably from existing LaTeX ...
user avatar
3 votes
1 answer
4k views

Beginner―Texmaker: generate HTML, MathML

I am very new to LaTeX and everything connected to it,but since I come from the HTML, I know what it means to use a markup language. I try to setup Texmaker that I can generate MathML and or HTML ...
user avatar
  • 133