123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 .. _upgrade: *********************************** Migrating from MathJax v1.0 to v1.1 *********************************** MathJax v1.1 fixes a number of bugs in v1.0, and improves support for new versions of browsers and mobile devices. It includes changes to increase its performance, and to make it more compliant with HTML5. It has more flexible configuration options, and the ability to load configuration files that combine multiple files into a single one to increase loading speed when MathJax starts up. Finally, MathJax.org now offers MathJax as a web service through a distributed "cloud" server. This document describes the changes you may need to make to your MathJax configurations in order to take advantage of these improvements. Configuration Changes ===================== The main changes that you will see as a page author are in the way that MathJax can be loaded and configured. If you have been using in-line configuration by putting a :meth:MathJax.Hub.Config() call in the body of the  would become .. code-block:: html instead. This will make sure your pages pass HTML5 validation. Be sure that you put the configuration block **before** the script that loads MathJax. See :ref:Loading and Configuring MathJax  for more details. If your page simply loads MathJax.js and relies on config/MathJax.js, then you will need to modify your  in the past, you should replace it with .. code-block:: html instead. If you don't do this, you will receive a warning message that directs you to a page that explains how to update your script tags to use the new configuration format. Combined Configurations ======================= New with version 1.1 is the ability to combine several files into a single configuration file, and to load that via the same script that loads MathJax. This should make configuring MathJax easier, and also helps to speed up the initial loading of MathJax's components, since only one file needs to be downloaded. MathJax comes with four pre-built configurations, and our hope is that one of these will suit your needs. They are described in more detail in the :ref:Using a Configuration File  section. To load one, add ?config=filename (where filename is the name of the configuration file without the .js) to the URL that loads MathJax.js. For example .. code-block:: html could be replaced by the single line .. code-block:: html In this way, you don't have to include the in-line configuration, and all the needed files will be downloaded when MathJax starts up. For complete details about the contents of the combined configuration files, see the :ref:Common Configurations  section. If you want to use a pre-defined configuration file, but want to modify some of the configuration parameters, you can use both a text/x-mathjax-config block and a config=filename parameter in combination. For example, .. code-block:: html would load the TeX-AMS_HTML configuration file, but would reconfigure the inline math delimiters to include $...$ in addition to $$...$$, and would set the processEscapes parameter to true. Loading MathJax from the CDN ============================ The MathJax installation is fairly substantial (due to the large number of images needed for the image fonts), and so you may not want to (or be able to) store MathJax on your own server. Keeping MathJax up to date can also be a maintenance problem, and you might prefer to let others handle that for you. In either case, using the MathJax distributed network service may be the best way for you to obtain MathJax. That way you can be sure you are using an up-to-date version of MathJax, and that the server will be fast and reliable. To use the MathJax CDN service, simply load MathJax as follows: .. code-block:: html and you want to use single-dollar delimiters for in-line math, then you should replace this with .. code-block:: html The same technique can be used in conjunction with a combined configuration file. For example .. code-block:: html will load the pre-defined TeX-AMS_HTML configuration, but will modify the settings to allow $...$ delimiters, and to process \\$ to produce dollar signs within the text of the page. New Distribution Location ========================= Version 1.0 of MathJax was distributed through SourceForge, but the development of MathJax has switched to GitHub _, which is now the primary location for MathJax source code and distributions. The SourceForge repository will no longer be actively maintained (and hasn't been since November 2010), and so you will not be able to obtain updates through svn if you checked out MathJax from there. You may be able to switch to using the MathJax CDN (see above) rather than hosting your own copy of MathJax, and avoid the problem of updates all together. If you must install your own copy, however, you should follow the instructions at :ref:Installing and Testing MathJax , using either git or svn as described to obtain your copy from GitHub. This will allow you to keep your copy of MathJax up to date as development continues. We apologize for the inconvenience of having to switch distributions, but the git-to-svn bridge we tried to implement to keep both copies in synch turned out to be unreliable, and so the SourceForge distribution was retired in favor of the GitHub site.