Skip to content

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.

  1. 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.

    Entry Insert math formula in the menu Insert and summation sign in the toolbar, both highlighted: two ways to the same dialog

  2. 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.

    Input in the graphical editor or in the LaTeX field with preview, below it the displayed keyboard with numbers, operators and functions

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

    Typeset formula in the text of the HTML editor, in the toolbar above it the summation sign for editing the formula

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.

  1. Open or create a portfolio entry and switch on "Edit mode".

  2. Click "Add a new layout" and select a layout. If the entry already has a layout, insert the formula there.

  3. In the layout, click "Add content".

    Dialog Add content with the headings Text, Media and Other & design, the entry Math formula is framed: this is where you insert a Math formula content element

  4. Select "Math formula".

  5. The graphical formula editor opens in the new content element. Create your formula.

    Math formula content element with an entered formula, below it the opened displayed keyboard with numbers, operators and functions: this is how you build the formula by clicking

Further information

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

To the top of the page ^