After installing MathJax extensions (on the creation date of this ticket latest v1.1.4), to learn about the functionality of this macro, the user visits the page MathJaxMacro that provides examples of usage. The user may need to export XWiki pages with text and formulas written using MathJax macro to HTML format. At the output of this, the user will receive a page with static files, however, if the HTML file is opened in a web browser, the formulas will not be displayed as they are displayed in XWiki. The structure of it is
<div class="row">
<div
id="xwikicontent"
class="col-xs-12"
>
<p>
Example usage of the
{{mathjax}}
macro:
</p>
<p>
Normal Wiki text
followed by a formula
</p>
<div class="xwiki-mathjax">
\begin{eqnarray} 1
& = & a x + b
y\label{eq:first}
\\ 0 & = & c x +
d
y\label{eq:second}
\end{eqnarray}
</div>
<p>
Solving equation
<span
class="xwiki-mathjax"
>
\ref{eq:second}
</span>
for
<span
class="xwiki-mathjax"
>
x
</span>
and substituting back
into equation
<span
class="xwiki-mathjax"
>
\ref{eq:first}
</span>
yields
</p>
<div class="xwiki-mathjax">
\begin{equation} y
=
\frac{c}{cb-ad}
\end{equation}
</div>
</div>
</div>
It is clear from documentation that the current working method is to export to PDF where the formulas will be displayed, but if the XWiki page can be exported to HTML format, then the result should be the same as in PDF |