MathJax
  • What is MathJax?
  • Getting Started with MathJax
    • Using the MathJax Content Delivery Network (CDN)
    • Installing Your Own Copy of MathJax
    • Putting mathematics in a web page
    • Where to go from here?
  • Installing and Testing MathJax
    • Obtaining MathJax via Git
    • Obtaining MathJax via SVN
    • Obtaining MathJax via an archive
    • Testing your installation
    • Notes about shared installations
    • Firefox and local fonts
    • IE9 and remote fonts
  • Loading and Configuring MathJax
    • Loading MathJax from the CDN
    • Configuring MathJax
    • Using a configuration file
    • Using a local configuration file with the CDN
    • Using in-line configuration options
    • Configuring MathJax after it is loaded
    • Details of the MathJax configuration process
  • Common MathJax Configurations
    • The TeX-MML-AM_HTMLorMML configuration file
    • The TeX-AMS-MML_HTMLorMML configuration file
    • The TeX-AMS_HTML configuration file
    • The MML_HTMLorMML configuration file
    • The AM_HTMLorMML configuration file
    • The TeX-AMS-MML_SVG configuration file
    • The Accessible configuration file
  • MathJax Configuration Options
    • Configuration Options by Component
  • Using MathJax in Web Platforms
    • Using MathJax in a Theme File
    • Instructions for Specific Platforms
  • MathJax TeX and LaTeX Support
    • TeX and LaTeX math delimiters
    • TeX and LaTeX in HTML documents
    • Defining TeX macros
    • Automatic Equation Numering
    • TeX and LaTeX extensions
    • Supported LaTeX commands
  • MathJax MathML Support
    • MathML in HTML pages
    • Supported MathML commands
  • MathJax AsciiMath Support
    • AsciiMath delimiters
    • AsciiMath in HTML documents
  • MathJax Output Formats
    • Automatic Selection of the Output Processor
    • Automatic Line Breaking
    • HTML-CSS with IE
    • HTML-CSS Extensions
  • The MathJax Community
    • Forums
    • Issue tracking
    • “Powered by MathJax”
  • What’s New in MathJax v2.1
    • Interface
    • Line-breaking
    • HTML-CSS/SVG display
    • TeX emulation
    • MathML Handling
    • Fonts
  • What’s New in MathJax v2.0
    • Major speed improvement for HTML-CSS output, particularly in IE
    • Reduced flickering during typsetting
    • Automatic equation numbering of TeX formulas
    • Automatic line breaking of long displayed equations
    • New AsciiMath input jax and SVG output jax
    • New combined configuration files
    • MathJax contextual menu now available on mobile devices
    • Improved support for screen readers
    • Many new TeX additions and enhancements
    • Font enhancements
    • Interface improvements
    • Important changes from previous versions
    • Other enhancements
    • Other bug fixes
    • Some technical changes
  • What’s New in MathJax v1.1
    • Optimization
    • Enhancements
    • TeX Support
    • MathML Support
    • Other Bug Fixes
    • Browser Support
  • Migrating from MathJax v1.0 to v1.1
    • Configuration Changes
    • Combined Configurations
    • Loading MathJax from the CDN
    • Change in default TeX delimiters
    • New Distribution Location
  • Converting to MathJax from jsMath
  • The MathJax Processing Model
    • How mathematics is stored in the page
    • The components of MathJax
  • The MathJax Startup Sequence
  • Synchronizing Your Code with MathJax
    • Using Callbacks
    • Using Queues
    • Using Signals
  • Loading MathJax Dynamically
    • MathJax and GreaseMonkey
  • Modifying Math on the Page
    • Manipulating Individual Math Elements
  • Details of the MathJax API
    • The MathJax variable
    • The MathJax.Hub object
    • The MathJax.Ajax object
    • The MathJax.Message object
    • The MathJax.HTML object
    • The MathJax.CallBack class
    • The MathJax.CallBack.Queue class
    • The MathJax.CallBack.Signal class
    • The MathJax.InputJax class
    • The MathJax.OutputJax class
    • The MathJax.ElementJax class
    • The base Jax class
    • The MathJax Object-Oriented Programming Model
  • HTML snippets
  • CSS style objects
  • Glossary
 
MathJax
  • Docs »
  • Using MathJax in popular web platforms
  • Edit on GitHub

Using MathJax in popular web platforms¶

MathJax plugins are available for a growing number of wikis, blogs, and other content-management systems. These include WordPress, Blogger, Sphinx, TiddlyWiki, and MathEL-Wiki. A list of these is available in the web applications list of the MathJax web site.

If the program you are using is not one of these, you may still be able to use MathJax by modifying the theme or template for your wiki or blog, as explained below.

Using MathJax in a Theme File¶

Most web-based content-management systems include a theme or template layer that determines how the pages look, and that loads information common to all pages. Such theme files provide one popular way to include MathJax in your web templates in the absence of MathJax-specific plugins for the system you are using. To take advantage of this approach, you will need access to your theme files, which probably means you need to be an administrator for the site; if you are not, you may need to have an administrator do these steps for you.

To enable MathJax in your web platform, add the line:

<script type="text/javascript"
   src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

either just before the </head> tag in your theme file, or at the end of the file if it contains no </head>.

The theme files for various popular platforms are:

WordPress
wp-content/themes/[current_theme]/header.php
Movable Type
[current_theme_templates]/html_head.mhtml
Drupal
themes/[current_theme]/page.tpl.php
Joomla
templates/[current_theme]/index.php
MediaWiki
skins/[current_skin].php
TiddlyWiki
*.php (Whatever you call your TiddlyWiki php file)
Moodle
theme/[current_theme]/header.html

Keep in mind that this will enable MathJax for your current theme/template only. If you change themes or update your theme, you will have to repeat these steps.

Instructions for Specific Platforms¶

Some programs, such as WordPress and Moveable Type, allow you to edit template files from inside their administrator interfaces. Specific instructions for these are given via the links below.

  • Wordpress
  • Movable Type
Next Previous

© Copyright 2012 Design Science.

Sphinx theme provided by Read the Docs