Tag Info

Hot answers tagged

26

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 ...


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 ...


17

"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 ...


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 ...


11

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 ...


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

The XSLT at http://code.google.com/p/web-xslt/source/browse/trunk/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

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

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 ...


7

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


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

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 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

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

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


3

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


3

My answer is probably not directly following your question but I think it is useful to mention the Mathtype equation editor. This is a commercial product that plugs into Word and it allows export or conversion to LaTeX equations directly from the word document. This will remove one step from your work flow and may make sense if you need to make many ...


3

Math accents are handled in complex way in tex4ht configurations for matml. I don't really understand this way, so I cannot provide clean solution. Simple fix is to add this line after \begin{document} in your cfg file: \def\dot#1{\Tg<mover accent="true">#1\HCode{<mo>&sdot;</mo></mover>}} but this still faills in the case of ...


3

This is known bug. Try: \documentclass{article} \usepackage{amsmath} \let\columnlines\empty \begin{document} \begin{equation} 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{equation} \end{document}


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 ...



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