Create a mini version of MathJax using Grunt

Overview

Smaller MathJax for offline use

This repo is based on the Gruntfile here and the guidance here. It's a good idea to read those pages before using this tool.

You'd use this repo for quickly generating a customised, stripped-down version of MathJax for offline use. You customise what is going to be left in your offline version, and the Grunt script discards everything else.

Usage

Use as is

If you're happy to use the offline version we've created for TeX input with SVG output, unzip build.zip and place these contents into your own mathjax or similar folder:

  • extensions
  • jax
  • MathJax.js
  • LICENSE

We've done this in the build folder here for demo purposes. You can see that in action here.

You'll also need to add a MathJax config to your page (as a Javascript object). See index.html here for an example. Note that the config script element appears before the link to MathJax.js.

Customise your MathJax package

If you want a different offline package:

  1. You must have Grunt installed. If you don't yet, follow the official instructions. Or:

    start by updating npm:

    npm update -g npm
    

    then run

    npm install -g grunt-cli
    
  2. Open this folder in a terminal and run npm install to install the necessary node_modules.

  3. The master version of MathJax is tracked as a Git submodule in this repo. To get the files, run git submodule init && git submodule update in this folder. That will clone the latest version of MathJax into the MathJax-master folder. In future, to update the MathJax files, cd MathJax-master && git fetch && git merge.

  4. Copy into the root of this repo only these from MathJax-master:

    1. all folders
    2. MathJax.js
    3. LICENSE

    (Some of the files in MathJax-master have the same names as ones we need in this repo's root, such as package.json and README.md. Don't overwrite those! This is also why we have edited the list under notcode in the Gruntfile, or we'd lose our files, too.)

  5. In Gruntfile.js, change which lines we've commented out already in the template task (lines 324 to 365). You comment out a line to keep a component. Anything not commented out gets removed (cleaned) from your offline MathJax.

  6. Run grunt template.

  7. Use the MathJax files that remain in the project root for your website.

You might also like...

Create mobile file manager design using Flutter

Create mobile file manager design using Flutter

Mobile File Manager Watch it on YouTube Home & Cloud Screen On this file manager design has two pages. The Home page displays file usage information,

Dec 23, 2022

UI design for mobile, create using visual studio code & flutter dart programming languange

HCIProjectLab A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Oct 13, 2021

A shopping cart application that lets the user create an account, select items, save the items in the cart, pay using the payment gateway, change account details and check order history.

Shopping Cart A new Flutter application. The main code file has all the code required for the mobile application. Getting Started This project is a st

Oct 14, 2021

Developed a Group chat application using Flutter and Firebase, where users can register and create groups or join already existing groups and start conversing with each other.

Developed a Group chat application using Flutter and Firebase, where users can register and create groups or join already existing groups and start conversing with each other.

GroupChatApp About Developed a Group chat application using Flutter and Firebase, where users can register and create groups or join already existing

Dec 1, 2022

‎‎‎‎‎Create a serverless Discord bot in pure dart using Discord Interactions webhooks

Create a serverless Discord bot in pure dart using Discord Interactions webhooks Features Feature Status Manage Application Commands Full support (uni

Sep 28, 2022

Flutter-Shop-UI-Kit - Create An E-commerce App UI kit Using Flutter

Flutter-Shop-UI-Kit - Create An E-commerce App UI kit Using Flutter

Flutter Shop UI kit If you are planning to create an e-commerce app using Flutte

Dec 28, 2022

Flutter library to create beautiful surveys (aligned with ResearchKit on iOS)

Flutter library to create beautiful surveys (aligned with ResearchKit on iOS)

SurveyKit: Create beautiful surveys with Flutter (inspired by iOS ResearchKit Surveys)

Dec 28, 2022

I was challenged to create an app with only the Nubank life insurance part and fix some UI issues.

I was challenged to create an app with only the Nubank life insurance part and fix some UI issues.

Seguros I was challenged to create an App with only the Nubank life insurance part and fix some UI issues. Flutter This is a Flutter App, designed bas

Dec 14, 2022

Create TODO LIST with Get Storage !

todo-list-get-storage Create TODO LIST with Get Storage ! dependencies: flutter: sdk: flutter # The following adds the Cupertino Icons font

Aug 24, 2022
Comments
  • How to use mhchem extension?

    How to use mhchem extension?

    Is there any possibility to use mhchem extension with this libarary? I also have followed official mhchem documentation but still not rendering chemical equations?

    opened by shah-xad 2
Owner
Electric Book Works
Publishing innovation, research and development
Electric Book Works
This is a weather application a mini project

Vayu Weather App It is a simple weather application is made for a mini project. The name Vayu is a sanskrit word means "Wind" (Reason of using these n

Vijay Sai Uppaluri 1 Sep 6, 2022
A mini shop app for donuts

donuts_minishop a mini shop app for donuts built with flutter Overview For help getting started with Flutter, visit the online documentation, which of

Anass Radi 0 Dec 30, 2021
Flutter mini project based on a famous movie character Jaadoo

Jaadoo A new Flutter Web project. This is the only way to call jaadoo to do your job..LOL Jaaadoo won't come, said first make this responsive on brows

PRATYUSH TIWARI 4 Dec 15, 2022
This is the new version of my Task app "Tasko" which was done in Java. She is now in Flutter for the HotReload and the native Cross-Platform.

tasko_rem The Tasko App is now compatible on iOS, Android and others distribution, because it's made with Flutter ✨ You can now add task, check them o

Scythe 12 May 2, 2022
Android/multiplatform version of the Clew App.

Android/multiplatform version of the Clew App.

Lani 1 Dec 30, 2021
'Efficacy' is a an Android app that keeps users updated on all events and happenings in and around the NITS campus. Note that the one in this repo is a slightly altered version of the original.

Efficacy : The proposed Android app for all clubs, events and happenings at NIT Silchar Get the release APK Some interesting features of this app incl

Gaurav Bhattacharjee 2 Aug 29, 2021
Draw the Year - Mobile version

drawtheyear_mobile A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

La Guirlande 0 May 28, 2022
Google IO Mobile Version (Fake)

fake_google_io Fake Google IO made with flutter (Not official!) Inspiration This application was made to enliven the Google I/O 2021 event which was h

Irvan Lutfi Gunawan 4 May 20, 2021
A flutter app for a wordpress websites with clean and elegant design. This app is available in free and pro version. You can choose to use the one you need.

?? Get Flutter for Wordpress Flutter for wordpress is currently available in free and pro version: Flutter for Wordpress Flutter for Wordpress Pro Bea

mcyos118 18 Dec 13, 2022
A New Version Of Camera_camera Package For Flutter

Camera_Camera 2.0 important this is a new version of camera_camera package, I fixed in this version most of the camera bugs such as when the camera cr

yassine 2 Jul 19, 2022