The R Project SVN R

Rev

Rev 81881 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 81881 Rev 81913
Line 1... Line 1...
1
 
1
 
2
MathJax = {
2
MathJax = {
-
 
3
  tex: {
-
 
4
    macros: {
-
 
5
      R: "{\\textsf{R}}",
-
 
6
      code: ["\\texttt{#1}", 1]
-
 
7
    }
-
 
8
  },
3
  options: {
9
  options: {
4
    renderActions: {
10
    renderActions: {
5
      find: [10, function (doc) {
11
      find: [10, function (doc) {
6
        for (const node of document.querySelectorAll('code[class^="mathjax"]')) {
12
        for (const node of document.querySelectorAll('code[class^="reqn"]')) {
7
          const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], false);
13
          const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], false);
8
          const text = document.createTextNode('');
14
          const text = document.createTextNode('');
9
          node.parentNode.replaceChild(text, node);
15
          node.parentNode.replaceChild(text, node);
10
          math.start = {node: text, delim: '', n: 0};
16
          math.start = {node: text, delim: '', n: 0};
11
          math.end = {node: text, delim: '', n: 0};
17
          math.end = {node: text, delim: '', n: 0};