- Home /
- AnswerHub Tech Docs /
- Developer /

- Home /
- AnswerHub Tech Docs /
- Developer /

MathJax is an open-source JavaScript display engine for *Tex or LaTeX*, *MathML*,
and *AsciiMath* markup that formats text-based mathematical equations and displays them in mathematical notation. The following **AnswerHub** implementation of **MathJax** supports the *Tex* or *LaTex* markup.

It is very easy to add **MathJax** to your **AnswerHub** installation using the Administration interface.

- Simply go to the
**Admin**->**Site**tab and select**Customize Header/Footer**from the menu list. - Paste the following JavaScript call into the
**Head Content**field and click**Save**.

<script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: {ignoreClass: "redactor_box"} }); </script>

- You have now enabled MathJax for your installation. Select
**Back to Site**to try out this new feature.

To put mathematics into your question, answer or comment, you can use the TeX or
LaTeX notation.

Mathematics that are written in *Tex* or *LaTex* format are
indicated using *math delimiters* that surround the mathematics. **MathTex** recognizes two types of delimiters to specify two types of formatting options.**In-line Formatting**

- In-line formatting is used to delimit short formulas that occur inside paragraphs, as part of text.
- The default delimiter for in-line formatting is
**( ... )**. - For example, the following
**AnwerHub**question uses in-line mathematical notation:

- When (a \ne 0), what are the two solutions to (ax^2 + bx + c = 0)?

**Displayed Formatting**

- Displayed formatting delimits large formulas that need to be separated from the surrounding text and displayed on a line by themselves.
- The default delimiter for displayed formatting is
**$$ ... $$**. - For example, the following
**AnswerHub**answer uses displayed mathematical notation:- The two solutions are: $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$

**The above question and answer will be rendered as:**

Visit the MathJax website for more information on formatting notations and displaying mathematics with MathJax.

thub.nodes.view.add-new-comment

screen shot 2014-02-05 at 3.17.52 pm.png
(51.3 kB)

screen shot 2014-02-05 at 2.31.48 pm.png
(74.9 kB)

matt

Follow
### Follow this article

No one has followed this yet.

- Anonymous
- Sign in
- Create
- Ask a question
- Create an article
- Post an idea
- Spaces
- AnswerHub Tech Docs
- Archive
- Help
- Explore
- Topics
- Questions
- Articles
- Users
- Badges