# Tag Info

30

The basic problem you're running into is the immaturity of the epub format. It's very easy for a publisher to produce an epub 3 of a novel if they're already set up to produce epub 2, and the epub 3 version will typically work fine on readers designed for epub 2. However, there seems to have been very slow progress to date on getting publishers and device ...

24

MathML is very verbose and is a pain to write manually, which is no problem if your code is automatically generated. For programs it is easy to parse, since it is XML. TeX math code was designed to be written by humans and results in much shorter code. I cannot answer your question if one format will replace the other. As I mentioned they serve different ...

20

I'd like to quote, with kind permission of the original author, the text of an article about LaTeX and MathML from access2science. The aim of the website is to provide "articles and links on accessibility of science, technology, engineering, and math (STEM). Its purpose is to provide practical information to people with print disabilities and to their ...

19

"It seems that to use MathML, I ("hypothetical I") need to use a Ruby program called iTeX, w" There seem to be some very confused descriptions of MathML, which doesn't require itex or ruby or any server side configuration at all. You cant really compare mathjax and mathml as they are different things, mathjax is a an implementation of a client side parser ...

17

Clearly the designers of LaTeX and MathML are deadly rivals and never speak to each other (or to the designers of OpenMath for that matter). [I've been asked to point out in the comments that this sentence is frivolous: there is a an overlap between the designers of LaTeX2e, MathML, OpenMath and this answer.] Tex and MathML can't really be compared as TeX ...

13

(This is really a comment on Ben's answer but is a bit long.) Broadly I agree with what Ben has said about the current state of play. The outlook is a bit gloomy. However, I think that there are a couple of glimmers of light that give me a little hope for some progress to occur. As Ben says, ePub is quite like XHTML. So if you can produce a valid ...

12

I would recommend MathJax. MathJax has the ability to be configured to use native MathML rendering when available in a browser, and only fall back to HTML-CSS mode when native rendering is not available. This way you get the best part of both worlds. (One limitation of MathJax is that fonts tend to load slowly. However, once they are cached in the browser ...

10

The XSLT at https://github.com/davidcarlisle/web-xslt/tree/master/pmml2tex converts MathML to TeX it's been fairly extensively used over the years including generating almost all the images in Chapter 4 of the MathML3 spec (as part of a pipeline Content MathML to Presentation MathML to TeX to images.) It currently skips maligngroup and produces From ...

9

This question is similar to Embedding LaTeX equations into a webpage and I think that my arguments for MathML there are pretty strong. I can also now add a couple of extra things since MathOverflow uses MathJaX so I've some direct experience. MathJaX is really slow, particularly when the server is in the US and I'm sitting here in Norway. You need to ...

9

We (W3C Math WG) did look at the start of the MathML2 cycle at specifying a linear (latex like) syntax for mathml (it was an explicit proposed deliverable) but initial investigations were not promising. As you note there are several I can't remember exactly which ones we polled probably jsmath (at the time), asciimathml, Word's linear format, itex, and ...

8

tex4ht can convert to XHTML and MathML. See my answer to this question.

8

I was looking for something similar and came across this question. Then I was excited to find Mathquill, via the Wikipedia page on formula editors. I've used a bunch of different formula editors, from MS Equation Editor to Google Docs' to LyX, and this is probably the most usable/fluid of all of them for simply banging out formulas. And it's web-based and ...

7

You can get TeX to parse the MathMl, see for example xmltex, http://anorien.csc.warwick.ac.uk/mirrors/CTAN/help/Catalogue/entries/xmltex.html which comes with some mathml setup, however I wouldnt do it that way these days, I'd convert the MathML using XSLT, see for example pmml2tex which is available on googlecode ...

7

After a lot of experimenting with epub and coming up with the same limitations as listed above, I choose to stay with PDF as my format. In my custom class, I have an option to specify document size, letter for 8.5x11, and two ipad versions, one for vertical and one for horizontal. I mainly stick with either letter or ipad vertical. This way all the content ...

6

You can use tex4ebook tool by Michal Hoftich (https://github.com/michal-h21/tex4ebook). This tool can convert not only to epub, but also to epub3 and mobi. There is interesting example at https://github.com/michal-h21/epub3sample (and converted math book with LaTeX source). Converted book uses svg for math, and looks nice, but the only epub 3 reader I have ...

6

The main problem is that tex4ht has been configured to use a precomposed accented x for \dot{x} which is the wrong translation, and produces incorrect output as you show. The generated MathML should use the <mover> form as for the dotted x. (1) is your original <!DOCTYPE html> <html> <head> <title></title> <meta ...

6

MathML is definitely not an "input language" in the sense that most will interpret the phrase. It is not meant to be written by humans. It is a computer representation of mathematical notation. TeX, on the other hand, is both a human input language (people type it into computer programs to express mathematics) AND a math typesetting system that converts TeX ...

6

Ubuntu 12.04 repositories have an old version of TeXmaker. So download the latest version of Ubuntu 12.04 deb package from TeXmaker website based on 32 bit (i386) or 64 bit(amd64) carry out the installation using gdebi package installer,then you will find the under Tools menu-->export via TeX4ht

6

MathML is not a typesetting system so there is a difference between what it can specify and what you can currently typeset with it. I usually typeset MathML by translating it to TeX for example, so necessarily that restricts things to those that are easily typeset by TeX. Things that MathML has simple markup for which are (more or less) hard to render using ...

5

If you want to generate <mi>abc</mi> the latex input should be \mathrm{abc}

5

I've found a workaround which is sufficient for me : first I use htlatex (tex4ht), but the images are too small I edit tex4ht.env, setting Gvipng -T tight -x2800-D144, but the small equations are too large … I use the following script in python : #!/usr/bin/env python import os import Image as im cmd=os.popen("ls *png") ...

4

This is known bug. Try: \documentclass{article} \usepackage{amsmath} \let\columnlines\empty \begin{document} $$x = \begin{array}{cc} 1, & \mbox{for } 0.5\leq p \leq 1 \\ 0, & \mbox{for } 0\leq p \le 0.5 \\ \end{array}$$ \end{document}

4

Please use the following command to generate mathml: mzlatex <file> 'xhtml,mathml,charset=utf-8' ' -cunihtf'

4

Actually, what you ask for doesn't need a revision of the web standards. What you need is better implementation of the existing standards. MathML is the web standard for communicating mathematics. However, it is not universally supported (Firefox is good, IE works with a plugin, other browsers are ... not so good). Indeed, MathJaX is a bridge allowing ...

3

Peter Luschny has prepared a nice test page and started a discusson on de.c.t.t (in German).

3

It's been a long time, but I think to have found the issue. In several places of mathltx.4ht there are \mathchar"<number> without a space at the end. In particular the problem seems to be in line 1142: 1141 \def\:tempd#1#2{% 1142 \expandafter\def\csname #1\endcsname{\mathchar"13#2}% 1143 \MathSymbol\mathop{#1}% 1144 \expandafter\def\csname ...

3

Do not really understand all parts of your question. tex4ht can be used to convert (La)TeX to MathML. Read more at: http://www.tug.org/applications/tex4ht/mn-commands.html#QQ1-9-37 There was similar question here: Convert Latex to MathJax-HTML about converting LaTeX to MathML and even loading mathjax scripts. Not every (La)TeX construction can be easily ...

3

Thanks to the hints given in the comments, the fix is to use UTF when building the HTML page with htlatex. The command to use is htlatex foo.tex "my,htm,charset=utf-8" " -cunihtf -utf8" The large size of summation issue is not a big problem. So there is no need to keep this open.

3

There's plasTeX and LaTeXML, written in Python and Perl respectively. The KWARC group are a major user of LaTeXML.

Only top voted, non community-wiki answers of a minimum length are eligible