gitbook-plugin-mathjax-pro

0.0.6 • Public • Published
> Quote
The plugin is based on the official mathjax plugin.
https://github.com/GitbookIO/plugin-mathjax
> Note
The official gitbook plugin has been closed and would not get the maintaince and the official mathjax plugin has some problem, so I want to change it.
▲ Important
Require GitBook >=2.0.0.

How to use it?

The default version of mathjax is 2.7.7

So the following steps will be based on this version.

  • Install the mathjax
npm install mathjax@2.7.7
  • Add it to your book.json configuration:
{
    "plugins": ["mathjax-pro"]
}
  • Install your plugins using:
gitbook install ./

And then you can use mathjax in you gitbook.

Configuration

Change the version

You can change the version of mathjax such as 2.7.5

  • Install the mathjax
npm install mathjax@2.7.5
  • Adding it to book.json:
{
    "pluginsConfig": {
        "mathjax-pro":{
            "version": "2.7.5"
        }
    }
}

Use of svg

You can force the use of svg pre-processed

  • adding to your book.json:
{
    "pluginsConfig": {
        "mathjax-pro":{
            "forceSVG": true
        }
    }
}

Readme

Keywords

Package Sidebar

Install

npm i gitbook-plugin-mathjax-pro

Weekly Downloads

1

Version

0.0.6

License

Apache-2.0

Unpacked Size

18 kB

Total Files

6

Last publish

Collaborators

  • kevinkangkang