1====== Math ======
2
3===== About =====
4The ''math'' component allows to add [[http://docs.mathjax.org/en/latest/start.html#tex-and-latex-input|MathJax Text and Latex formulas]]
5
6
7<WRAP round important>
8This component needs a special [[https://www.dokuwiki.org/devel:event_handlers|event]] called ''TPL_DOCUMENT_CLOSING'' in order to add the mathjax library only if this component is used.
9It means than in editing mode, you may also not see the formulas.
10
11Example of php code that must be added before the ''%%</html>%%'' tag:
12<code php>
13$data = "";// Mandatory
14trigger_event('TPL_DOCUMENT_CLOSING', $data);
15tpl_flush();
16</code>
17</WRAP>
18
19===== Articles Related =====
20{{backlinks>.}}
21
22===== Example =====
23
24==== Block ====
25
26
27<code dw>
28<MATH>x^2</MATH>
29</code>
30This formula should not be inline but at the line <MATH>x^2</MATH>
31==== In-line ====
32
33<code dw>
34<math>x^2</math>
35</code>
36This formulas should be inline <math>x^2</math>
37
38
39
40
41
42