All Projects → jmnote → Simplemathjax

jmnote / Simplemathjax

Licence: mit
MediaWiki Extension SimpleMathJax

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Simplemathjax

hexo-filter-mathjax
💯 Server side MathJax renderer plugin for Hexo.
Stars: ✭ 76 (+261.9%)
Mutual labels:  mathjax
CodeMirror-MathJax
Experimenting to replace $math$ with formulas inside CodeMirror
Stars: ✭ 18 (-14.29%)
Mutual labels:  mathjax
Hexo Theme Chic
An elegant, powerful, easy-to-read Hexo theme.
Stars: ✭ 539 (+2466.67%)
Mutual labels:  mathjax
yk-liu.github.io
Pointing to the Moon, my personal website.
Stars: ✭ 82 (+290.48%)
Mutual labels:  mathjax
PointingToTheMoon
Super slim Jekyll Theme created for math posts with easy mermaid diagram
Stars: ✭ 49 (+133.33%)
Mutual labels:  mathjax
Codebe
CodeBe(码币)是一个是使用angular2整合各种插件的项目,包括(layer,bootstrap-table,markdown编辑器,highcharts,ckeditor,高德地图,fullcalendar 等等)。如果你有什么想要集成的插件,请告诉我,我来加进去。(请给我加个星,谢谢。)
Stars: ✭ 307 (+1361.9%)
Mutual labels:  mathjax
mathb
MathB.in - Mathematics Pastebin Written in Common Lisp
Stars: ✭ 203 (+866.67%)
Mutual labels:  mathjax
Cocalc
CoCalc: Collaborative Calculation in the Cloud
Stars: ✭ 888 (+4128.57%)
Mutual labels:  mathjax
pseudocode.js
Beautiful pseudocode for the Web
Stars: ✭ 132 (+528.57%)
Mutual labels:  mathjax
Mathjax Node
MathJax for Node
Stars: ✭ 534 (+2442.86%)
Mutual labels:  mathjax
purple-pi
💜 LaTeX math wherever you want
Stars: ✭ 31 (+47.62%)
Mutual labels:  mathjax
python-markdown-math
Math extension for Python-Markdown
Stars: ✭ 98 (+366.67%)
Mutual labels:  mathjax
Liandi
📕 一款桌面端的 Markdown 块级引用和双向链接笔记应用,支持 Windows、Mac 和 Linux。A desktop Markdown Block-Reference and Bidirectional-Link note-taking application, supports Windows, Mac and Linux.
Stars: ✭ 354 (+1585.71%)
Mutual labels:  mathjax
arabic-mathjax
Beautiful Arabic Math on all browsers. An extension for MathJax v2.
Stars: ✭ 12 (-42.86%)
Mutual labels:  mathjax
Markdown Preview.vim
⚠️ PLEASE USE https://github.com/iamcco/markdown-preview.nvim INSTEAD
Stars: ✭ 764 (+3538.1%)
Mutual labels:  mathjax
grav-plugin-mathjax
This plugin allows you to include math formulas in your web pages, either using TeX and LaTeX notation, and/or as MathML.
Stars: ✭ 18 (-14.29%)
Mutual labels:  mathjax
Markdown Preview Enhanced
One of the 'BEST' markdown preview extensions for Atom editor!
Stars: ✭ 3,478 (+16461.9%)
Mutual labels:  mathjax
Jaxbin
MathJax and TeX pastebin
Stars: ✭ 15 (-28.57%)
Mutual labels:  mathjax
Papers
Publications from the MathJax project
Stars: ✭ 6 (-71.43%)
Mutual labels:  mathjax
Mathjax Docs
MathJax documentation. Beautiful math in all browsers. Beautifully documented.
Stars: ✭ 437 (+1980.95%)
Mutual labels:  mathjax

The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments.

https://www.mediawiki.org/wiki/Extension:SimpleMathJax

Installation

  • git clone in extensions directory
  • Using CDN is recommended. Because it's much faster than using local resources in most cases. ("the benefits of using a CDN")
$ git clone https://github.com/jmnote/SimpleMathJax.git
  • (Optional) If you want to use not CDN but local mathjax scripts, you can use git clone recursive.
$ git clone --recursive https://github.com/jmnote/SimpleMathJax.git
  • LocalSetting.php
wfLoadExtension( 'SimpleMathJax' );

Optional Settings

Setting name Description default value custom value example
$wgSmjUseCdn use CDN or local scripts true false
$wgSmjUseChem enable chem tag true false
$wgSmjEnableMenu MathJax.options.enableMenu true false
$wgSmjDisplayMath MathJax.tex.displayMath [] [['$$','$$'],['\[','\]']]
$wgSmjExtraInlineMath MathJax.tex.inlineMath [] [['\(', '\)']]
$wgSmjScale MathJax.chtml.scale 1 1.5
$wgSmjDisplayAlign MathJax.chtml.displayAlign center left
$wgSmjWrapDisplaystyle wrap with displaystyle true false

If you want to change font size, set $wgSmjScale.

wfLoadExtension( 'SimpleMathJax' );
$wgSmjScale = 1.5;

If you want to use local module, set $wgSmjUseCdn.

wfLoadExtension( 'SimpleMathJax' );
$wgSmjUseCdn = false;

If you want to enable some extra inlineMath symbol pairs, set $wgSmjExtraInlineMath.

wfLoadExtension( 'SimpleMathJax' );
$wgSmjExtraInlineMath = [["$","$"],["\\(","\\)"]];

If you want to disable MathJax context menu, set $wgSmjEnableMenu.

wfLoadExtension( 'SimpleMathJax' );
$wgSmjEnableMenu = false;

Hooks

The hook SimpleMathJaxAttributes is available to add attributes to the span around the math. This hook provides you with the opportunity to ensure that your own code does not interfere with MathJax's rendering of math.

For instance, if Lingo's JS functions are called before MathJax is invoked, then it is possible that Lingo will change the text so that MathJax could no longer render the math.

Lingo understands that it should not touch anything inside an element with the class noglossary so the following code can be used to keep Lingo from ruining math:

$wfHook['SimpleMathJaxAttributes']
	= function ( array &attributes, string $tex ) {
		$attributes['class'] = 'noglossary';
	}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].