Math formula
You build a formula in a test question, a forum post or a portfolio entry in OpenOlat with a graphical editor, without having to master LaTeX. How you open the editor depends on the place: in texts with the HTML editor via the menu of the HTML editor, in portfolio entries via the Content editor.
Insert a formula via HTML editor
In texts you edit with the HTML editor, you insert the formula via the dialog "Formula". There you see the result in a preview before it appears in the text.
-
In the menu of the HTML editor, click
Insert > Insert math formula. If the toolbar shows the summation sign Σ, clicking it opens the same dialog.
-
Enter the formula in the graphical editor or in the LaTeX field. Further information on how to use the graphical editor can be found here: CortexJS keybindings.

-
Close the dialog "Formula" with "Save". The formula then appears typeset in the text.

You insert math formulas via HTML editor, for example, in the following course elements and learning resources:
- Course element "HTML page"
- Course element "Task" and "Group task" (HTML)
- Course element "Forum"
- Learning resource "CP learning content"
- Learning resource "Blog"
- Learning resource "Test"
Important
Word count for tasks: The math formula counts as one word, regardless of length and complexity.
Insert a formula via Content editor in Portfolio 2.0
In a portfolio entry, the formula is a content element of its own between texts and images. You enter it directly in the content element; a displayed keyboard with numbers, operators and functions helps with characters that are missing on the normal keyboard.
-
Open or create a portfolio entry and switch on "Edit mode".
-
Click "Add a new layout" and select a layout. If the entry already has a layout, insert the formula there.
-
In the layout, click "Add content".

-
Select "Math formula".
-
The graphical formula editor opens in the new content element. Create your formula.

Further information
CortexJS keybindings >
Content Editor >
Course Element "HTML page" >
User tools: Portfolio 2.0 >