Page tree
Skip to end of metadata
Go to start of metadata

ONYX offers authors the possibility to integrate formulas in MathML or LaTeX notation. ONYX uses the established MathJax framework for optimal presentation of your formulas in all browser views.

For an easy creation and automatic conversion of your formulas into the LaTeX markup language, several LaTeX formula editors can be downloaded from the internet. For example, MyScript Math or the Latex formula editors by Matheretter and Zahlenkern, which stand out due to their simplicity and extensive functionality.

Example formula

Creating formulas with LaTeX

The ONYX Editor provides LaTeX support for all author inputs. Via the HTML editor, which is part of the ONYX Editor, you can integrate formulas into all question areas: question text, alternative answers, or feedback, using the LaTeX markup language. The formulas will be displayed with the established MathJax Framework. Your formula will also be automatically converted to a professionally formatted formula.

Formula formatting - Editor

Fig.: LaTeX input in the ONYX Editor

Formula formatting - Question

Fig.: Formula presentation in a test situation

In order to present mathematical formulas in LaTeX, you need to integrate the formula into your text. This can be done as follows:

  • \( Formula \)
  • \[ Formula \]
  • $$ Formula $$

The LaTeX syntax $formula$ is not supported in ONYX.

You can find extensive material on generating formulas with LaTeX on the internet. For example, detailed examples can be found in the Wikibook: LaTeX compendium for mathematicians (in German).

Creating formulas with the formula dialogue

Apart from the markup language LaTeX, mathematical formulas and complex expressions can also be integrated using the Mathematical Markup Language (MathML). For easy input, a special formula plugin is available for the HTML editor integrated into the ONYX Editor.

Create a formula in the text editor


Select the formula option in the text editor.

Formula option in the text editor


In the dialogue, enter your formula into the text field in MathML or LaTeX notation.

Below the input field, you will be given a preview of the formula.

For LaTeX input, you can choose (by radio button) whether the formula should be inserted into the text editor in LaTeX notation or as a placeholder.

Enter formula

3Click on Finish to insert the formula into the test content.

Insert formula

Edit an existing formula

To edit existing formula content with the formula plugin, proceed as follows:


Click on the formula placeholder or mark the entire formula in LaTeX notation. 

Formula option


Select the formula option in the text editor.

3The formula opens in the formula dialogue, allowing you to edit the formula in the text field.

Formula input window

4Confirm your changes by clicking on Finished at the end of the dialogue.

Cou can find extensive material on generating formulas with MathML on the internet. A detailed description is provided by the Official MathML 3.0 specification.

Creating formulas with a formula editor

You can find numerous LaTeX formula editors on the internet, which provide support for creating LaTeX formulas.

For example, the MyScript website offers simple operation. Write the desired formula in the free area using your mouse or stylus. The formula editor translates the displayed formula into LaTeX notation and, if appropriate to the formula, also shows a graph of the created function.

MyScript formula editorFig.: Formula input with MyScript

The LaTeX notation for the entered formula is displayed in the top right page area. You can mark it, copy it and then paste it into the ONYX HTML input fields.

With the editors of the Matheretter LaTeX assistant or the Zahlenkern LaTeX formula editor, you can create formulas using ready-made, graphic formula symbols and adapt them. The formula editors also translate the displayed formula into LaTeX notation, which can then be inserted into the ONYX HTML input fields.

Matheretter LaTeX assistant

Fig.: Formula input in the Matheretter LaTeX assistant

Zahlenkern LaTeX formula editor

Fig.: Formula input in the Zahlenkern LaTeX formula editor

Formula examples 

ONYX uses the MathJax framework to display formulas. On the MathJax demo pages, you can find several examples on how to insert formulas.

Example of an inline formula

Fig.: Example of an inline formula

Example of a formula centred on a separate line

Fig.: Example of a formula centred on a separate line