Last modified: 2014-10-19 18:45:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T17870, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15870 - Enabling TeX (<math>) support should be much simpler
Enabling TeX (<math>) support should be much simpler
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: physikerwelt
:
Depends on: 17465
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-06 16:59 UTC by MZMcBride
Modified: 2014-10-19 18:45 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2008-10-06 16:59:12 UTC
Currently, if one wishes to enable <math> support, they must install or compile texvc, OCaml, GNU make, LaTeX, Ghostscript, dvips, ImageMagick, and possibly a "supplemental TeX package" according to <http://www.mediawiki.org/wiki/Manual:Enable_TeX>.

This is a nightmare, especially on any shared hosting environment. The math support is also written in a programming language that few people are familiar with (OCaml) and in general has far too many dependencies.

It should be simplified for both the end user and for the developers. Rewriting math support would likely be a good first step.
Comment 1 Brion Vibber 2008-10-06 17:04:04 UTC
Hmm, how would you intend to simplify it?

The texvc filter could be rewritten in PHP, eliminating the ocaml & gmake compilation dependencies.

The LaTeX/ghostscript/dvips/imagemagick dependencies are what do all the actual work of math rendering, though. I can't think of much to eliminate this other than, say, creating a public web service that does <math> -> image rasterization, and allowing third parties to call out to it instead of installing the software locally.
Comment 2 Brion Vibber 2008-10-06 17:11:14 UTC
http://www.forkosh.com/mimetex.html also looks pretty nifty -- alternate TeX-like renderer. Not as pretty, and not necessarily fully compatible, but has no external dependencies and compiles from standard C.
Comment 3 physikerwelt 2013-09-30 02:07:46 UTC
There is a partial solution for that:

You can use the MathML (LaTeXML) rendering mode.
The downside is that users that have browsers that are not support HTML5 fully (i.e. MathML) have to use enabling technology like MathJaX or MathPlayer to display math correctly.
But it's even worth. The browsers don't even know that they can not display MathML reasonably well and just output the text elements. cf http://html5test.com/compare/feature/parsing-mathml.html
So it's hard to filter browsers that support reasonably well MathML rendering and those that don't.

We tried to convert the texvc output via pdflatex to svg. For most cases that works fine. However there are lot of corner cases and issues and it seems not to be a very elegant solution.
Our main idea for the future, is to convert MathML to SVG to overcome the browsers weaknesses at the server side. However at the moment we are not aware of a tool that can do the job correctly.
Comment 4 physikerwelt 2014-10-19 18:45:20 UTC
The documentation on the Extension:Math page was improved. Now it should be possible to enable Math support in less than one minute.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links