Integrate formulas
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 such as the question text, alternative answer options, or feedback, using the LaTeX markup language. The formula display is done with the established MathJax Framework, and your formula is automatically converted to a professionally formatted formula.
Fig.: LaTeX input in the ONYX Editor |
Fig.: Formula display in a test situation |
In order to display mathematical formulas in LaTeX, you just need to integrate the formula into your text. This can be done as follows:
- \( Formula \)
- \[ Formula \]
- $$ Formula $$
The $Formula$ LaTeX syntax is not supported in ONYX.
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 also available for the ONYX Editor's integrated HTML editor.
Create a formula in the text editor
1 | Select the formula option |
|
2 | In the dialogue, enter your formula in the text field in MathML or LaTeX notation. Below the input field, you will be given a preview of the formula. Click on Finish to insert the formula into the test content. |
|
3 | The formula is then displayed in LaTeX notation in the text field. If necessary, you can change this default configuration in your ONYX user settings and display a placeholder image instead. |
|
4 | In the question preview and later in the user view, the formula is displayed the same way as in the formula preview. |
|
Creating formulas with a formula editor
You can find numerous LaTeX formula editors on the internet to assist you in creating LaTeX formulas.
For example, the MyScript website offers simple operation. Just write the desired formula in the free area using your mouse or stylus. The formula editor then translates the displayed formula into LaTeX notation and, if appropriate to the formula, also shows a graph of the created function.
Fig.: 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 editor 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.

Fig.: Formula input in the Matheretter LaTeX assistant

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.
Fig.: Example of an inline formula
Fig.: Example of a formula centred on a separate line






