File: mathjax.rb

package info (click to toggle)
tdiary-contrib 5.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,576 kB
  • ctags: 1,957
  • sloc: ruby: 16,900; lisp: 514; xml: 451; php: 61; sql: 40; sh: 35; makefile: 33
file content (23 lines) | stat: -rw-r--r-- 685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
# mathjax.rb $Revision: $
#
# MathJaxを使った数式表示のためのプラグイン
#
# MathJaxでTeXやMathMLを使った数式を埋め込むことができます。
#
# MathJaxについては、http://www.mathjax.org/ を参照のこと
#
# Copyright (C) 2014 by Yuh Ohmura <http://yutopia.pussycat.jp/diary/>
#
=begin ChangeLog
2014-12-17 Yuh Ohmura
	* created.
=end
add_header_proc do
'<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [[\'$\',\'$\'], ["\\\\(","\\\\)"]]}});
</script>
<script type="text/javascript"
  src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>'
end