## About LaTeX

LaTeX is a package for easily **designing scientific texts**. It is designed in a way that the author only needs to focus on the content and not on the design.

LaTeX is integrated the HTML editor of the assessmentQ item bank. This will allow you, as an author, to use complex scientific formulas in all assessmentQ items.

## Procedure

To insert a LaTeX formula, you have two options:

- via the LaTeX pop-up
- directly in the HTML editor

### Via the LaTeX pop-up

To add a LaTeX formula **via the pop-up**, click the **LaTeX** icon :

**Result**: A pop-up appears where you can enter your formula and see a preview of your rendered formula:

Click on **Insert** to add your formula in the editor as an image.

**Tip**: Your formula will automatically be added as a new paragraph. If you want to add it inline, check the option

**Show inline.**

The list of possible LaTeX codes can be found on: https://docs.mathjax.org/en/latest/input/tex/macros/index.html.

### Directly in the HTML editor

To add a LaTeX formula **directly in the HTML editor,** you need to put your formula between dollar signs.

- If you add
**one dollar sign**before and after your formula it will be added inline.: The real numbers $x$ and $y$ are such that for all real numbers $a$ and $b$ it holds that

Example**$**\left[\begin{matrix}0&1\\x&y\end{matrix}\right] \left[\begin{matrix}a&b\\-a&b\end{matrix}\right]=\left[\begin{matrix}-a&b\\2a&3b\end{matrix}\right].**$**:

Result - If you add
**two dollar signs**before and after your formula, it will be added as a new paragraph.: The real numbers $x$ and $y$ are such that for all real numbers $a$ and $b$ it holds that

Example**$$**\left[\begin{matrix}0&1\\x&y\end{matrix}\right] \left[\begin{matrix}a&b\\-a&b\end{matrix}\right]=\left[\begin{matrix}-a&b\\2a&3b\end{matrix}\right].**$$**:

Result

**Tip**: When your formula is added, it will be centered in the editor. If you want to align it left, press**Enter**before your formula, click on your formula and check the option**Show inline**.