Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anishmprasad/mathjax-offline
A Mathjax Port for self hosted system
https://github.com/anishmprasad/mathjax-offline
Last synced: about 9 hours ago
JSON representation
A Mathjax Port for self hosted system
- Host: GitHub
- URL: https://github.com/anishmprasad/mathjax-offline
- Owner: anishmprasad
- License: mit
- Created: 2020-09-03T10:41:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-05T18:22:05.000Z (over 1 year ago)
- Last Synced: 2025-01-01T08:42:03.106Z (about 2 months ago)
- Language: JavaScript
- Size: 22.2 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mathjax-offline
A Mathjax Port for self hosted system
# Usage
```jsx
import "mathjax-offline/v2.7.x/MathJax.js?config=TeX-AMS-MML_HTMLorMML&dummy=.js";// Config
window.MathJax = {
skipStartupTypeset: true,
messageStyle: 'none',
showMathMenu: true,
//jax: ['input/TeX', 'input/MathML', 'output/CommonHTML'],
extensions: ['tex2jax.js', 'mml2jax.js', 'MathMenu.js', 'MathZoom.js'],
TeX: {
extensions: ['AMSmath.js', 'AMSsymbols.js', 'noErrors.js', 'noUndefined.js'],
},
tex2jax: {
preview: 'none',
inlineMath: [
['$', '$'],
['\\(', '\\)'],
],
},
jax: ['input/TeX', 'input/MathML', 'output/SVG'],
SVG: {
fontCache: 'global',
scale: 100,
undefinedFamily: "STIXGeneral, 'Arial Unicode MS', serif",
font: 'STIX-Web',
mtextFontInherit: true,
matchFontHeight: true,
},
root: getRootPath(),
AuthorInit: function () {
window.MathJax.Hub.Register.MessageHook('Math Processing Error', function (message) {
// do something with the error. message[2] is the Error object that records the problem.
console.log('Math Processing Error', message);
});
},
};function getRootPath() {
return ''
}
```# Licence
MIT