This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

How does one use MathJax in the FEniCS Q&A forum?

+3 votes

I want to use MathJax to write LaTeX formulas in this forum, but can't get it to work. Please advise.

asked Jun 6, 2013 by logg FEniCS Expert (11,790 points)

1 Answer

+6 votes
 
Best answer

MathJax should automatically parse any TeX-like expressions in your posts,
however it does not do it in real time (at the moment). It may be possible to enable this.

Thus, expressions like $E=mc^2$ will appear beautifully in the rendered posting.
There are issues with the Markdown Editor (which does produce syntax highlighting nicely)
that it also interprets some characters as formatting, which may be part of your formula.
It is possible to disable these, if they are reported as problems...

$$ A_{ij} x_j = b_i $$

from this:

$$ A_{ij} x_j = b_i $$

Test some common formulae:

$$\langle v_j,v_k \rangle=\int_0^1 v_j v_k\,dx$$

$$\langle v_j,v_k \rangle=\int_0^1 v_j v_k\,dx$$
answered Jun 6, 2013 by chris_richardson FEniCS Expert (31,740 points)
edited Jun 7, 2013 by chris_richardson
There are some issues with MathJax, clearly, and also Markdown Editor.
Finding the right compromise may take a little while...

It works fine now. I just didn't realize that the formulas were not shown in the preview.

Here's a test:

$$f(x) = \sin(x)$$

This is what it looks like in both the answer box and the preview box as I'm typing:

$$f(x) = \sin(x)$$
Yes, and there can also be a delay before the page is finally rendered,
especially on more complex formulae. Maybe it can be tweaked, or
maybe we can live with it...
...