====== Math ====== ===== About ===== The ''math'' component allows to add [[http://docs.mathjax.org/en/latest/start.html#tex-and-latex-input|MathJax Text and Latex formulas]] This 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. It means than in editing mode, you may also not see the formulas. Example of php code that must be added before the ''%%%%'' tag: $data = "";// Mandatory trigger_event('TPL_DOCUMENT_CLOSING', $data); tpl_flush(); ===== Articles Related ===== {{backlinks>.}} ===== Example ===== ==== Block ==== x^2 This formula should not be inline but at the line x^2 ==== In-line ==== x^2 This formulas should be inline x^2