File: essai.html

package info (click to toggle)
mathjax-siunitx 0.1-3
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, forky, sid, trixie
  • size: 2,232 kB
  • sloc: javascript: 3,927; python: 247; makefile: 5
file content (55 lines) | stat: -rw-r--r-- 1,791 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en" dir="ltr" class="no-js">
  <head>
    <meta charset="utf-8" />
    <title>page005 [Debian DokuWiki]</title>
    <script type="text/javascript" charset="utf-8" 
            src="http://localhost/javascript/jquery/jquery.js"></script>
    <script type="text/x-mathjax-config">/*<![CDATA[*/
      MathJax.Hub.Config({
	  tex2jax: {
              inlineMath: [ ["$","$"], ["\\(","\\)"] ],
              displayMath: [ ["$$","$$"], ["\\[","\\]"] ],
              processEscapes: true
	  },
	  TeX: { extensions: [
	      "[siunitx]/unpacked/siunitx.js",
	      "color.js"
	  ] }
      });

      MathJax.Ajax.config.path["siunitx"] = "http://localhost/javascript/siunitx";
      /*!]]>*/
    </script>
    <script type="text/javascript" charset="utf-8" 
            src="http://localhost/javascript/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML"></script>
  </head>

  <body>
    <p>
      Il a fallu rajouter manuellement &lt;nowiki&gt; &lt;/nowiki&gt; 
      pour la deuxième ligne, première colonne du tableau
    </p>

    <p>
      sans quoi, le signe ^ est interprété comme le début 
      d&#039;une nouvelle colonne.
    </p>
    <table class="inline">
      <thead>
	<tr class="row0">
	  <th class="col0">Code </th><th class="col1">MathJax </th>
	</tr>
      </thead>
      <tr class="row1">
	<td class="col0">\si{kg.m.s^{-1}} </td><td class="col1"> $\si{kg.m.s^{-1}}$ </td>
      </tr>
      <tr class="row2">
	<td class="col0">\si{\kilogram\metre\per\second} </td><td class="col1"> $\si{\kilogram\metre\per\second}$</td>
      </tr>
      <tr class="row3">
	<td class="col0">\si[per-mode=symbol]{\kilogram\metre\per\second} </td><td class="col1"> $\si[per-mode=symbol]{\kilogram\metre\per\second}$ </td>
      </tr>
    </table>
  </body>
</html>