JsMath/MathJax (TeX for Web)

From TorontoMathWiki

Jump to: navigation, search

$$\def\pLaTeX{\rm\color{red} {L\kern-.325em\raise.21em{\scriptstyle{A}}\kern-.17em\TeX}\ \color{blue} {L\kern-.325em\raise.21em{\scriptstyle{A}}\kern-.17em\TeX}}$$

$\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$ $\pLaTeX$

Contents

How to use LaTeX?

There are few ways but the best and default is to use [1]. MathJax and JsMath are JavaScript TeX/LaTeX parsesr.


No worry if you do not know How to do it.

  • First, let us check if your preferences are set to jsMath: click on my preferences in the top-right corner of the page, then click on tab Math and look if radio button jsMath is selected. If not, select it and Save.
  • To create inline math you can use SingleDollars: for example use \$e^x \$ to display $e^x$.
  • To create display math you can use DoubleDollars

\$\$ (2\pi h)^{-d}\iint_{\{H(x,\xi) <\tau\}} dx d\xi \$\$ to create $$ (2\pi h)^{-d}\iint_{\{H(x,\xi) <\tau\}} dx d\xi$$

  • AMSMath and AMSSymbols are supported (so you can use \mathcal{A}, \mathscr{A}, \mathbf{Z}, \mathbb{R}, \mathfrak{A} and \matsf{A} (in SingleDollars or DoubleDollars) to produce $\mathcal{A}$, $\mathscr{A}$, $\mathbf{Z}$, $\mathbb{R}$, $\mathfrak{A}$ and $\mathsf{A}$ respectively.

One can add support for extra packages but it slows down the parsing)

MathJax is here

This move does not require to change your documents. MathJax wiki

  • MathJax is more powerful tool. Example

http://weyl.math.toronto.edu:8888/wiki244/index.php/User_talk:Victor_Ivrii#Handout_MAT244-LN1

  • One of the newest and prominent features is Menu: control-Click on Mac or right-button-click on Unix on MathJax Mathematics output to see it in action.

What jsMath & MathJax are good for?

  • One can use MathJax and jsMath with
    • CMS :
      • We use it with CMS SilverStripe lading though templates of certain pages
    • Blog
      • We use it with WordPress including Wordpress-µ (multiuser) and WordPress 3 multisite WP-hooks plug-in
      • One could use it via (current) theme (skin) hacking
    • Wiki
      • We use it with mediawiki via (hacked) extension jsMath
      • One could use it via (current) theme (skin) hacking
    • Forum
      • I use it with SimpleMachines SMF2 forum via hacking Sources/Subs.php; see Forum
  • Use show preview rather than Save page before you are completely happy. Victor 00:13, 5 January 2010 (UTC)

MathJax+Geogebra

Great Demo

XyJax

http://homepage.mac.com/oasis/xyjax.html is a fork of MathJax allowing to type commutative diagrams.

Unfortunately at the current stage it is not separated from MathJax ("a fork") and cannot be use as MathJax plug-in and is α-quality (but the author tries to do separate it from MathJax and debug).

If there is a demand from people who use CDs I can set a wiki or forum or blog on my computer which uses this fork.

Victor 17:39, 21 October 2011 (EDT)

Warning

MathJax and jsMath are not $\LaTeX$ in its full glory and there is no way to load packages (or documentclasses), there is no automatic numbering (yet - in MJ, there is in jsMath), no \section, \intertext or \inculdegraphics, {table} or {figure}, no page layout etc.

News

$\TeX$ or $\LaTeX$ process the whole document while MathJax/JsMath should be used for math snippets in the standard html page.

MathJax 2.0 beta has been released publicly; it is available for download and also from CDN http://www.mathjax.org/2012/02/11/news/mathjax-v2-0-beta-now-available-on-cdn/. Release is expected really soon.

I have been using prerelease versions for a long time


Victor 16:03, 13 February 2012 (EST)

Personal tools