# How to Add Math Equations in MasterStudy?

**MasterStudy LMS** has built-in support to add math equations, formulas using [**LaTeX** system](https://www.latex-project.org/).&#x20;

<details>

<summary>What is LaTeX?</summary>

*LaTeX* is a document preparation system used for the communication and publication of scientific documents. It is widely used in academia for the communication and publication of scientific documents and technical note-taking in many fields, owing partially to its support for complex mathematical notation. It also has a prominent role in the preparation and publication of books and articles that contain complex multilingual materials, such as Arabic and Greek. LaTeX uses the TeX typesetting program for formatting its output, and is itself written in the TeX macro language.

Source: <https://en.wikipedia.org/wiki/LaTeX>

</details>

To use the functionality, a free [**MathJax-Latex**](https://wordpress.org/plugins/mathjax-latex/) plugin should be installed and configured accordingly.

## Install and Configure MathJax-Latex

{% stepper %}
{% step %}
Search for the **MathJax-Latex** by following **WP Dashboard > Plugins > Add New** and **Activate** it:

<figure><img src="/files/CmLHR8m1zVNEFxUR4FGh" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
After the plugin activation, follow **WP Dashboard > Settings > MathJax-Latex** and check the **Force Load** option, and **Save Changes**:&#x20;

<figure><img src="/files/84zXPMhcLwu7huYAMOSi" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
That's it! Now you're free to use LaTeX syntax to add math equations on your website!
{% endhint %}
{% endstep %}
{% endstepper %}

## Example Usage in Course Builder

LaTeX written math equations and formulas can be used in the **Lesson contents**, and both the [**Question** and **Answers**](/masterstudy-lms/lms-course-features/questions.md) part of the [**Quizzes**](/masterstudy-lms/lms-course-features/quizzes.md). There is only one rule to follow:

{% hint style="info" %}
Before and after the LaTeX syntax code, `$$` symbols should be added in the [**Course Builder.**](/masterstudy-lms/lms-course-features/course-builder.md)
{% endhint %}

| Correct LaTeX Syntax for Course Builder  | Display on the Course Player            |
| ---------------------------------------- | --------------------------------------- |
| `$$[ x^n + y^n = z^n]$$`                 | $$\[ x^n + y^n = z^n ]$$                |
| `$$\lim_{a \rightarrow b} \frac{x}{y}$$` | $$\lim\_{a \rightarrow b} \frac{x}{y}$$ |

Here is the example usage in the **Quiz**:

{% tabs %}
{% tab title="Course Builder View (Back-end)" %}

<figure><img src="/files/yPYLIbiXr8EyMIP6OyMs" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Course Player View (Front-end)" %}

<figure><img src="/files/UNKUj94Cb2Eizs5PSt3e" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="success" %}
To convert the math formulas into **LaTeX** syntax, you can use the available LaTeX Conversion Editors [**like this**](https://www.sciweavers.org/free-online-latex-equation-editor) on the internet.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/masterstudy-lms/lms-course-features/course-builder/how-to-add-math-equations-in-masterstudy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
