data-8/plugin-mathjax

Name: plugin-mathjax

Owner: Data Science 8

Description: MathJAX plugin for GitBook

Forked from: GitbookIO/plugin-mathjax

Created: 2017-06-29 23:47:01.0

Updated: 2017-06-29 23:47:03.0

Pushed: 2017-06-30 01:39:39.0

Homepage: null

Size: 79

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Math integration with GitBook

This plugin uses MathJax to display Math/TeX formula. This is an official plugin. Versions >=0.1.0 require GitBook >=2.0.0.

How to use it?

Add it to your book.json configuration:


"plugins": ["mathjax"]

Install your plugins using:

tbook install ./

You can now add TeX formula to your book using the {% math %} block:

 {% math %}a \ne 0{% endmath %}, there are two solutions to {% math %}(ax^2 + bx + c = 0){% endmath %} and they are {% math %}x = {-b \pm \sqrt{b^2-4ac} \over 2a}.{% endmath %}

You can also use the shortcut $$:

 $$a \ne 0$$, there are two solutions to $$(ax^2 + bx + c = 0)$$ and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
Configuration

You can force the use of svg pre-processed by adding to your book.json:


"pluginsConfig": {
    "mathjax":{
        "forceSVG": true
    }
}


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.