Questions tagged [mathml]

MathML is a way to describe mathematical expressions with XML.

1
vote
1answer
35 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{...
0
votes
0answers
39 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
29 views

Matrix in LaTeXMathML

Hey! i got problem with formatting matrices in LaTeXMathML (Not to be wrong with: normal LaTeX, MathML) I tried: \begin{bmatrix} a & b \\ c & d \end{bmatrix}
1
vote
1answer
1k 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> ...
1
vote
1answer
52 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{...
3
votes
1answer
156 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 ...
1
vote
1answer
259 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 ...
1
vote
0answers
179 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, ...
1
vote
0answers
117 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 ...
3
votes
1answer
436 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} \...
1
vote
1answer
2k 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?
6
votes
0answers
262 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.
2
votes
1answer
163 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-...
0
votes
0answers
118 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} ...
2
votes
1answer
197 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 ...
4
votes
1answer
502 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 ...
1
vote
3answers
2k 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,...
1
vote
1answer
572 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....
10
votes
5answers
4k 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 ...
3
votes
1answer
293 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 ...
3
votes
1answer
219 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 ...
2
votes
1answer
186 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): \...
2
votes
0answers
523 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/...
4
votes
0answers
707 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 ...
1
vote
0answers
254 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 ...
3
votes
0answers
425 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 ...
2
votes
2answers
682 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 ...
7
votes
1answer
221 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 ...
2
votes
1answer
266 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 ...
4
votes
1answer
677 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 ...
6
votes
1answer
337 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....
10
votes
2answers
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 ...
45
votes
5answers
12k 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 ...
2
votes
1answer
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 ...
17
votes
2answers
8k views

I want to convert MathML to LaTeX

I'm trying to convert my equations I make in Microsoft Office Word 2013 to LaTeX because I would like to post my equations I make in word at math.stackexchange.com. I'm able to convert it to MathML. ...
3
votes
1answer
362 views

Prevent TeX4ht from inserting img in equation with \mathcal

When I use TeX4ht to produce MathML, it produces an image when I use \mathcal in the equation. The result is that MathJax complains that the code is not valid. Is there a way to fix this problem? ...
1
vote
1answer
771 views

a line through a column in MathML [closed]

I have a problem with MathML. How can I draw a line through a column (row and column at the same time) in a matrix? An example in TEX: Draw a line through one column of a matrix
35
votes
5answers
13k views

Relationship between MathML and TeX

What is the relationship, if any, between Tex and MathML? I am interested in representing mathematical information generally, but is TeX going to be a legacy format going forward? Is there any ...
4
votes
2answers
1k views

Creating mathjax-style documents

Is there any software, website, etc. that renders a document as if MathJax were being used, but in such a way that the output can be read by someone who is not using MathJax? (Perhaps the equations ...
4
votes
1answer
1k views

Latex to ODF/DOC using mk4ht oolatex failing on equation arrays

Title says it all. Anyone got any ideas on what I'm doing wrong? Is this a fundamental fault with oolatex conversion? Is there an alternative math format I can use? Same math builds fine in latex ...
5
votes
2answers
2k views

Rendering MathML in LaTeX?

I have MathML that I need to render in my LaTeX document. Is there a recommended way of doing so? So far, from googling, I've found MathParser - a Java converter. But I was hoping there might be a ...
8
votes
8answers
4k views

Want a TeX to XML or MathML converter

Is there a TeX engine that converts a TeX document to MathML or XML directly the way PDFTeX converts text input to PDF? I am familiar with some converters that transform a subset of TeX into ...
12
votes
2answers
6k views

What are the Open source WYSIWYG Independent Web Equation Editors available on LaTeX/MathML

I am looking for a solution of an Equation Editor to be added to my site. The equation editor should be open source, WYSIWYG (users should be able to type out Equations as if in MS Equation Editor or ...
9
votes
5answers
6k views

Math Input Panel in Windows 7 and LaTeX writing

I just found out about the Math Input Panel in Windows 7,and now there is commercial software using it for LaTex writing. For example Inlage. If you have a look of their first demo video, you know ...
23
votes
7answers
8k views

Comparing MathJax and MathML

My organisation needs to update its website, which, in particular, will host a number of blogs and wikis on mathematics-related themes. We need to use some way of rendering of LaTeX on our web pages. ...